This package will allow easier maintainence of CRAN-like repos on local networks (i.e. not on CRAN). This might be necessary where hosted packages contain intellectual property owned by a corporation that cannot be hosted publicly.
Easy:
install.packages("managelocalrepo")
submissions
. This is where package files should be put before being released to your local repo.managelocalrepo.submission
and managelocalrepo.base
options to your .First()
file in your .Rprofile
. For example, your .Rprofile
might look something like this:R .First <- function () { options( repos = c(CORPREPO = "file:////server/file/path/to/your/dir"), managelocalrepo.submissions = '/path/to/your/dir/submissions', managelocalrepo.base = '/path/to/your/dir') }
The repos
option will make sure you can install from the corporate repo. The other two options will help point managelocalrepo
to where it might find the package file (e.g. zip
, tgz
file) when you use quick_release_package()
.
Then you can build package file (e.g. package_file.zip
), have them copied to the submissions
folder and then run quick_release_package('package_file.zip')
.
I've tested this on Windows and OSX. But hopefully it should work on other platforms.