You can go to the package directory:

    cd /some/path/to/package

and do

    R CMD install .

from a command-line there.

Many github-based packages are also made using RStudio and you can
just open the .Rproj file (i.e. load it into R studio) and build the
package there which will install it.

The same-named package will overwrite what you have previously installed.

Just:

   devtools::install_github("owner/package")

to go back to the original.

On Fri, Jul 17, 2015 at 8:12 PM, Steve E. <[email protected]> wrote:
> Hi Folks,
>
> I am working with a package installed via GitHub that I would like to
> modify. However, I am not sure how I would go about loading a 'local'
> version of the package after I have modified it, and whether that process
> would including uninstalling the original unmodified package (and,
> conversely, how to uninstall my local, modified version if I wanted to go
> back to the unmodified version available on GitHub).
>
> Any advice would be appreciated.
>
>
> Thanks,
> Steve
>
>
>
> --
> View this message in context: 
> http://r.789695.n4.nabble.com/modifying-a-package-installed-via-GitHub-tp4710016.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> [email protected] mailing list -- To UNSUBSCRIBE and more, see
> 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.

______________________________________________
[email protected] mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to