managelocalrepo v0.1.5

0

Monthly downloads

0th

Percentile

Manage a CRAN-Style Local Repository

This will allow easier management of a CRAN-style repository on local networks (i.e. not on CRAN). This might be necessary where hosted packages contain intellectual property owned by a corporation.

Readme

managelocalrepo

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.

Installation

Easy:

install.packages("managelocalrepo")

Process

  1. Set up a directory on your network. This will be your base directory.
  2. Create a subdirectory with the name submissions. This is where package files should be put before being released to your local repo.
  3. Add the managelocalrepo.submission and managelocalrepo.base options to your .First() file in your .Rprofile. For example, your .Rprofile might look something like this:

    .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').

Notes

I've tested this on Windows and OSX. But hopefully it should work on other platforms.

Functions in managelocalrepo

Name Description
managelocalrepo Manage CRAN-like repo on local network
release_package Release a package to the local repo.
full_repo_dir Determine the full path for local repo
create_terminal_dir Create terminal repo directory
quick_release_package Quick release a package
No Results!

Last month downloads

Details

Type Package
Date 2015-04-21
License GPL-2
NeedsCompilation no
Packaged 2015-04-21 10:39:03 UTC; imanuel
Repository CRAN
Date/Publication 2015-04-21 14:02:07

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/managelocalrepo)](http://www.rdocumentation.org/packages/managelocalrepo)