Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As a stop-gap, I've written a new <a href="http://cran.r-project.org/web/packages/rbundler/index.html" rel="nofollow">rbundler</a> package. It installs project dependencies into a project-specific subdirectory (e.g. <code>&lt;PROJECT&gt;/.Rbundle</code>), allowing the user to avoid using global libraries.</p> <ul> <li><a href="https://github.com/opower/rbundler" rel="nofollow">rbundler</a> on Github</li> <li><a href="http://cran.r-project.org/web/packages/rbundler/index.html" rel="nofollow">rbundler</a> on CRAN</li> </ul> <p>We've been using <code>rbundler</code> at Opower for a few months now and have seen a huge improvement in developer workflow, testability, and maintainability of internal packages. Combined with our internal package repository, we have been able to stabilize development of a dozen or so packages for use in production applications.</p> <p>A common workflow:</p> <ul> <li>Check out a project from github</li> <li>cd into the project directory</li> <li>Fire up R</li> <li><p>From the R console:</p> <blockquote> <p>library(rbundler)</p> <p>bundle('.')</p> </blockquote></li> </ul> <p>All dependencies will be installed into <code>./.Rbundle</code>, and an <code>.Renviron</code> file will be created with the following contents:</p> <pre><code>R_LIBS_USER='.Rbundle' </code></pre> <p>Any R operations run from within this project directory will adhere to the project-speciic library and package dependencies. Note that, while this method uses the package DESCRIPTION to define dependencies, it needn't have an actual package structure. Thus, <code>rbundler</code> becomes a general tool for managing an R project, whether it be a simple script or a full-blown package.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload