Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Local repos in different location on dev/prod servers

49 views
Skip to first unread message

Devin McCabe

unread,
Jan 22, 2018, 11:34:05 AM1/22/18
to packrat-discuss

I have a packrat project that includes a package that's not in CRAN, only a private GitHub repo. I solved this problem locally by setting up a local CRAN-like repository on my laptop and installing the package there. This works fine. I have these lines in packrat.lock:

PackratFormat: 1.4
PackratVersion: 0.4.8.54
RVersion: 3.4.3
Repos: CRAN=https://cran.rstudio.com,
    localran
=file:///Users/devin/Code/localran

On my production server, where I also set up a local repository for my custom package, this path is obviously different. This creates a conflict in git every time I try to pull new project code onto the remote server. Is there a recommended way of dealing with this issue? Symlinks?
Reply all
Reply to author
Forward
0 new messages