Forking a package/install from source
1
0
Entering edit mode
Jeff • 0
@facf73fa
Last seen 2.0 years ago
United States

We think we've found a bug in a package and wanted to make a fork of the repo to try a fix. Is there a way to specify to install the package from source from our repo? Thanks!

install package fork bugfix • 922 views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 50 minutes ago
United States
> library(BiocManager)
> install("<your GitHub ID>/<the repo name>")

As an example, I could install the GitHub version of my affycoretools package like this

install("jmacdon/affycoretools")

And do note that if you are on Windows, you need an additional type = "source"

ADD COMMENT
0
Entering edit mode

And alternatively, if the repo is on your own computer, you can (ideally) copy the repo somewhere temporarily, and then do

R CMD build <reponame>
R CMD check <reponame.tar.gz>
R CMD INSTALL <reponame.tar.gz>

At the command prompt. Or even

install.packages(<reponame>, repo = NULL) ## with type = "source" if on Windows
ADD REPLY

Login before adding your answer.

Traffic: 1005 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6