If you'd like to simply test out the effect of that change in an interactive R session, you can do so using trace()
. Here's how:
- Type
trace("semiMarkov", edit=TRUE)
- In the text editor that that launches, edit the line of interest.
- Save the modified file.
- Close the text editor
- Back in R, use the modified function.