我正在R中拟定一揽子计划。 请打电话mypkg
。
由于有些职能在从一揽子计划(我无法确定为什么不是问题)运作时有不同的做法,我正在编辑一揽子计划的职能,然后从指挥线重建一揽子计划。 由于某种原因,某一审案保留了较旧的职能,尽管来文方已经改变,而且一揽子计划已经重建和重新安装。 我需要开一个新例子,看看这些变化。
这里是典型的工作流程。
- Make changes to
myfunction()
inmypkg.R
- In R:
detach(package:mypkg); remove.packages("mypkg")
- Command line:
R CMD INSTALL --build c:mypkg
- Notifies me that it has been installed to the default library
- In R:
library(mypkg)
- In R:
myfunction()
runs the previous version before changes.
[The next three steps I want to avoid]
- Start a new R instance
- In R:
library(mypkg)
myfunction()
works as expected
R.2.14.1.
I am looking for suggestions of how to improve this workflow to avoid starting a new R instance.