No such file or directory issue following the official Packrat guide to create local repositories

Related link: Packrat documentation

Hello Community,

I am trying to set up a local package repository on a windows machine, and following the official guide I get several issues.

First, I can finish to the point where I build the package in the temp-folder copy the files from the temporary folder to my local folder.

But I finally get the issue that there is no such file or directory when using

install.packages("sashimi", type = "source")

So I got curious and tried this out using a Linux machine and from what I can tell the whole tutorial worked as expected, but on windows it doesnt.

I suspect it`s an issue with install.packages getting the wrong path to find the DESCRIPTION-File?

getOptions("repos") returns 


Solved. Needed to change

cranURI <- paste("file://", normalizePath(localCRAN, winslash = "/"), sep = "")


cranURI <- paste("file:", normalizePath(localCRAN, winslash = "/"), sep = "")
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.