[R-pkg-devel] CRAN incoming feasibility Error
Seth Wenchel
wenchel at gmail.com
Tue Jun 9 17:47:59 CEST 2015
Actually, all of those switches came in as i was trying to resolve this
issue.I started with just R CMD check --as-cran. In fact, my Rprofile.site
does have a similar statement and sets a proxy but it doesn't seem good
enough for the CRAN checks.
### Rprofile.site contents
Sys.setenv(http_proxy="http://proxy.mitre.org:80")
local({
r <- getOption("repos")
r["CRAN"] <- "http://watson.nci.nih.gov/cran_mirror/"
r["MITRE"] <- "http://mcran.mitre.org"
options(repos=r)
})
options(help_type="html")
### few switches output
c:\Users\itsme\Documents\anAwesomePackge.Rcheck>"c:\Program
Files\R\R-3.2.0\bin\R.exe" C
MD 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
Execution halted
On Tue, Jun 9, 2015 at 11:27 AM, Dirk Eddelbuettel <edd at debian.org> wrote:
>
> 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
>
[[alternative HTML version deleted]]
More information about the R-package-devel
mailing list