[R-pkg-devel] CRAN incoming feasibility Error

Dirk Eddelbuettel edd at debian.org
Tue Jun 9 17:27:19 CEST 2015


On 9 June 2015 at 10:24, Seth Wenchel wrote:
| Hi All,
| 
| I'm running into an error with R CMD check --as-cran on R 3.2.0 for
| windows.  Obviously i've tried googling but i haven't found this specific
| issue.  I was wondering if it is because of my company's network settings.
| FWIW, it makes it through devtools::check() just fine.
| 
| Cheers,
| Seth
| 
| c:\Users\itsme\Documents\anAwesomePackge.Rcheck>"c:\Program
| Files\R\R-3.2.0\bin\R.exe" -
| -no-site-file --vanilla --no-environ --no-save --no-restore CMD check
| --as-cran
| "../anAwesomePackge_1.0.0.tar.gz"
| * using log directory
| 'c:/Users/itsme/Documents/anAwesomePackge.Rcheck/anAwesomePackge.Rcheck'
| * using R version 3.2.0 (2015-04-16)
| * using platform: x86_64-w64-mingw32 (64-bit)
| * using session charset: ISO8859-1
| * using option '--as-cran'
| * checking for file 'anAwesomePackge/DESCRIPTION' ... OK
| * checking extension type ... Package
| * this is package 'anAwesomePackge' version '1.0.0'
| * checking CRAN incoming feasibility ...Error in utils::contrib.url(urls,
| "source") :
|   trying to use CRAN without setting a mirror

That is pretty explicit. R does not where to find a CRAN mirror, and the
powers that be decided to not set a default.

So do something like

## Example of Rprofile.site
local({
    r <- getOption("repos")
    r["CRAN"] <- "http://cran.rstudio.com"
    options(repos = r)
})

in Rprofile.site or Rprofile -- and let go of some of the switches in

| -no-site-file --vanilla --no-environ --no-save --no-restore CMD check
| --as-cran

as you are being bitten by just that: too vanilla a session.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org



More information about the R-package-devel mailing list