On 11.02.2012 13:49, Wet Bell Diver wrote:> Win7 x64, R2.14.1
>
> Dear list,
>
> I would like to get into the habbit of creating a package for each
> project. That way I can package my project-specific functions and data
> together and load or unload that at will. Also, it will allow easy
> navigation through all the functions I will have available for each
> project, since I can then use ?myfunction and immediately see the
> details of that function (esp. useful when revisiting a project after
> several months).
> Anyway, I have been successful in constructing a package, using the
> package.skeleton. My question is how to easily update the package when I
> write an additional function or rewrite an existing function. Do I then
> need to again build the package fully, or is there an "incremental
> update" option somewhere? This I can not find anywhere, maybe I am
> overlooking something?
You can use package.skeleton with force = FALSE in order not to
overwrite existing files. Anyway, I typically edit the files of the
package directly, without using any helper functions.
And if you add a new function, you can use prompt() to prepare a
corresponding Rd file.
Uwe Ligges
> Thanks,
> Peter
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.