Skip to content
Prev 52125 / 63421 Next

Forking and adapting an R package

On 12/07/2016 7:28 AM, timo at timogrossenbacher.ch wrote:
This is more of an R-devel question, so I've posted my followup there 
(as well as a private copy to you).

The fact that you've forked the package shouldn't matter.  You are 
working in RStudio, so the way to work with a package is:

1.  Open the project consisting of your local package.
2.  In the Build pane, click on "Build and Reload".

What "Build and reload" does is to install the package from the source 
in the project, then restart R and load the installed package.

Test your code in this new R session.  If you're working on a vignette, 
you can open the vignette, and execute the code chunks one by one.

If they all succeed in that context, they still might not when you run 
checks:  it *won't* have your package loaded when it compiles a 
vignette.  You need to put an explicit

library(hexbin)

in one of the code chunks.

Duncan Murdoch