Questions tagged [cran]

For questions relating to the Comprehensive R Archive Network (CRAN), which serves as a central repository for R distributions and contributed packages. This tag is not for general R questions; use the [r] tag instead.

The Comprehensive R Archive Network (CRAN) is a collection of sites that host distributions, binaries, packages and documentation. There are many CRAN mirrors around the world.

Downloading R

For Linux installation, use your package manager. Instructions for Debian, Redhat, Suse, Ubuntu.

Downloading packages

Documentation

Submitting packages

Bug tracker

R Packages for managing other packages

Related tags

852 questions
226
votes
11 answers

How to select a CRAN mirror in R

I'm trying to install a package through the R prompt by doing the following: install.packages('RMySQL') But the output is as follows: --- Please select a CRAN mirror for use in this session --- And nothing else! I can't find a solution to this…
Jim Johnson
  • 2,469
  • 2
  • 15
  • 13
129
votes
3 answers

Set default CRAN mirror permanent in R

How can I set a specific CRAN mirror permanently in R? I want to set it permanently in my laptop so that when I do install.packages(), it won't ask me again which mirror to choose.
719016
  • 9,922
  • 20
  • 85
  • 158
83
votes
2 answers

How to tell CRAN to install package dependencies automatically?

I develop a package in R and when I check and build it in my local computer it works properly. But when I tried it in CRAN, I get a package dependencies error. My package depends on two functions of other packages. If I list the other packages…
Mikael
  • 985
  • 1
  • 7
  • 6
70
votes
3 answers

checking CRAN incoming feasibility ... NOTE Maintainer

When I run R CMD check --as-cran on my package, the one note I still get is: checking CRAN incoming feasibility ... NOTE Maintainer:[my name] I can't seem to find a good explanation of this note, although I haven't read anything that…
Benjamin
  • 16,897
  • 6
  • 45
  • 65
61
votes
3 answers

Offline install of R package and dependencies

Suppose I need to install a number of packages on a (Linux) machine that does not have an internet connection. Let's say that I downloaded a copy of cran and burned it on a DVD that I bring to the offline location: wget…
Jeroen Ooms
  • 31,998
  • 35
  • 134
  • 207
57
votes
5 answers

Install a local R package with dependencies from CRAN mirror

I have built an R package, i.e. I have the mypackage.tar.gz file. This package depends on several other packages, all downloadable and installable from any CRAN mirror. Now I want to install this package on a system where the dependencies are not…
WoDoSc
  • 2,598
  • 1
  • 13
  • 26
47
votes
1 answer

How to get an rmarkdown vignette for R package to escape CRAN warnings on Solaris and OSX

I have a couple of R packages on CRAN that have warnings against Solaris (and sometimes OSX) that are related to pandoc not being available for the vignette build. For example, here are the ggseas results on CRAN, and the source code for the…
Peter Ellis
  • 5,694
  • 30
  • 46
46
votes
2 answers

Update a specific R package and its dependencies

I have around 4000 R packages installed in my system (a server) and most of them are outdated because they were built before R-3.0.0. Now I know update.packages(checkBuilt=TRUE, ask=FALSE) would update all my packages but that's too slow. The…
user3175783
  • 572
  • 1
  • 4
  • 8
37
votes
5 answers

Warning "downloaded length != reported length" in installing packages from CRAN

Searching on stackoverflow questions, I found out this link: Error in file.download when downloading custom file . However, my case is a little bit different (I think): 1) I get this annoying warning when installing some packages from CRAN (or also…
Davide Passaretti
  • 2,741
  • 1
  • 21
  • 32
37
votes
2 answers

NOTE in R CRAN Check: No repository set, so cyclic dependency check skipped

As of R 3.1.0 I get the following R check: * checking package dependencies ... NOTE No repository set, so cyclic dependency check skipped I tried this advice: https://twitter.com/phylorich/status/431911660698083328 No go. I put the line…
Tyler Rinker
  • 108,132
  • 65
  • 322
  • 519
37
votes
2 answers

R: apt-get install r-cran-foo vs. install.packages("foo")

When installing R packages (say mcmcpack in this example) under Ubuntu I have the choice between the following two methods of installation: # Let the distribution's packaging system take care of installation/upgrades apt-get install…
knorv
  • 49,059
  • 74
  • 210
  • 294
36
votes
1 answer

makePSOCKcluster hangs on win x64 after calling system

I am experiencing a hard to debug problem with makePSOCKcluster from the parallel package on R x64 on Windows. It does not happen on R i386 on Windows, nor on any OSX or Linux. Unfortunately it does not happen consistently either, only occasionally…
Jeroen Ooms
  • 31,998
  • 35
  • 134
  • 207
34
votes
2 answers

R CMD check --as-cran warning

I am trying to do R CMD check before uploading my package to CRAN. R CMD check --as-cran "my package folder". However, it spits out this warning: "checking for unstated dependencies in examples ... OK WARNING pdf is needed for checks on size…
Tao Wang
  • 341
  • 1
  • 3
  • 3
33
votes
3 answers

Check how many downloads a CRAN package has?

How can I get simple download metrics for an R package on CRAN? I recently released my own package on CRAN and I want to monitor it a bit.
Ben
  • 20,038
  • 30
  • 112
  • 189
32
votes
3 answers

How do I add a Changelog or NEWS file to my R package?

I have a package on CRAN that I would like to add a ChangeLog for, but I cannot find information anywhere on how to do this. I looked on the "Writing R Extensions" document that CRAN provides, but it only mentions ChangeLogs and gives no direction…
CephBirk
  • 6,422
  • 5
  • 56
  • 74
1
2 3
56 57