Defining local cran when building package

Hi everyone, I'm trying to build a package in my workplace and I'm having difficulties with defining the dependencies: We're using a local CRAN, but I'm getting this message during the checks =>

checking package dependencies ...Warning: unable to access index for repository

When I'm trying to install the package, it does not install the dependencies. Any ideas?

1 Like
  1. Are you able to install any packages from your local CRAN? When you use install.packages(), does it say it is downloading the package from your local CRAN?

  2. What do you get when you run getOption("repos")?

  3. What is the exact command are you running to perform the checks? Are you using R CMD check or devtools::check()? If you are using devtools::check(), try setting cran = FALSE to disable CRAN-specific tests.