Re: Deploying with Packrat

118 views
Skip to first unread message

Kevin Ushey

unread,
Mar 10, 2016, 7:53:24 PM3/10/16
to Joseph Chisari, packrat-discuss
Hi Joseph,

One way of overriding the packrat library path is to set the
`R_PACKRAT_LIB_DIR` environment variable to the desired library path.
Does this help?

Thanks,
Kevin

On Thu, Mar 10, 2016 at 4:05 PM, Joseph Chisari <joseph...@gmail.com> wrote:
> Hi,
>
> I'm attempting to deploy a Shiny App to a Chef'd box running Shiny Server.
> I'm trying to use packrat to manage packages much in the same way that I
> would use virtualenv for a python project. The Shiny App is deployed to the
> Shiny Server from a remote git repo. The directory is owned by Chef and so
> packrat does not have write permissions.
>
>
> It seems like I should be able to maintain the packrat.lock file in my
> project directory and then the 'lib' directories in some place where I have
> write permissions (say ~/.virtualenvs) but I have been unable to get that to
> work.
>
> The way I understand it; if I change the path in .Rprofile to
> '~/.virtualenvs/some_project' it will look for packrat.lock there, and not
> the version I am deploying from git.
>
> Is this a good use of packrat? Are there any best practices? Or am I
> overlooking a simpler solution?
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "packrat-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to packrat-discu...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages