Unable to find repository URL for package foreign

Deploying to shinyapps from R 3.6 triggers this warning:

Uploading bundle for application: 2299510...Warning in FUN(X[[i]], ...) :
Unable to find repository URL for package foreign

Hello,

I think this might be because the URL for this package is not a CRAN URL: https://svn.r-project.org/R-packages/trunk/foreign

I read in a related post it seems that you can set the URL for alternative repositories (at the top of your script):

options("repos" = c("CRAN" = "https://cran.rstudio.com", "custom" = "file:///path/to/my/mount"))

So probably that should be then:

options("repos" = c("CRAN" = "https://cran.rstudio.com", 
        "svn.r-project" = "https://svn.r-project.org/R-packages/trunk/foreign"))

I'm not sure if you have to use the full path, or just parts of it like https://svn.r-project.org or https://svn.r-project.org/R-packages or https://svn.r-project.org/R-packages/trunk.

Hope this helps,
PJ

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

That same version of foreign-0.8.80 is available from CRAN at https://cran.r-project.org/web/packages/foreign/index.html

Is there a reason you are using SVN instead of installing directly from CRAN?