Question: "Error in contrib.url(repos, type) : trying to use CRAN without setting a mirror" Error when installing package
0
gravatar for ApoorvaB
2.6 years ago by
ApoorvaB230
United States
ApoorvaB230 wrote:

Hi.

I am trying to install a package a few packages from the source for R shiny-server,

sudo su - -c "R -e \"source('https://s3-us-west-2.amazonaws.com/10x.files/supp/cell-exp/rkit-install-1.1.0.R')\""

but the command is giving me an error

 Error in contrib.url(repos, type) : 
trying to use CRAN without setting a mirror
Calls: source ... eval -> eval -> install.packages -> grep -> contrib.url
Execution halted

How do i fix this ?

shiny-server R • 15k views
ADD COMMENTlink modified 2.6 years ago • written 2.6 years ago by ApoorvaB230

This is the relevant issue.

trying to use CRAN without setting a mirror

http://stackoverflow.com/questions/11488174/how-to-select-a-cran-mirror-in-r

ADD REPLYlink modified 2.6 years ago • written 2.6 years ago by genomax74k
0
gravatar for ApoorvaB
2.6 years ago by
ApoorvaB230
United States
ApoorvaB230 wrote:

Used this instead and it worked

sudo su - -c "R -e \"install.packages('http://s3-us-west-2.amazonaws.com/10x.files/code/cellrangerRkit-1.1.0.tar.gz', repos=NULL)\""
ADD COMMENTlink written 2.6 years ago by ApoorvaB230
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1694 users visited in the last hour