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?