Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

update packages installed from github

Tags:

I'm using more and more dev packages installed from github.

I find myself wondering if there is an easy way to update these packages? Essentially looking for something like update.packages() equivalent for install_github() (or indeed any other repo than CRAN).

Similar question for R-forge has some ideas:

Automatically update packages installed from R-forge

Maybe the best way to do this would be to install dev packages in their own separate directory:

How to specify lib directory when installing development version R Packages from github repository

keep a tab on packages as they are installed, and try re-installing list regularly.

Any thoughts?

like image 336
carnust Avatar asked Jan 14 '15 10:01

carnust


People also ask

How do I update a GitHub package?

Switch to the Browse tab, search for the package name, select it, then select Install). For all packages, delete the package folder, then run nuget install . For a single package, delete the package folder and use nuget install <id> to reinstall the same one.

How do I update my GitHub clone?

To sync your forked repo with the parent or central repo on GitHub you: Create a pull request on GitHub.com to update your fork of the repository from the original repository, and. Run the git pull command in the terminal to update your local clone.


1 Answers

There are a number of packages that will do this:

@hrbrmstr recommends the dtupdate package

@jeborsel suggests adding a github repository as drat-repository via the drat package from Dirk Eddelbuettel. This will let you use update.packages() on it

like image 142
divibisan Avatar answered Oct 21 '22 19:10

divibisan