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
20
votes
2 answers

Warning: replacing previous import ‘head’ when loading ‘utils’ in R

When loading the RTextTools package from CRAN, I get the following warnings: Warning messages: 1: replacing previous import ‘head’ when loading ‘utils’ 2: replacing previous import ‘tail’ when loading ‘utils’ How do I get rid of these…
Timothy P. Jurka
  • 918
  • 1
  • 11
  • 21
20
votes
3 answers

'LazyData' is specified without a 'data' directory error when submitting R package to CRAN

When I run devtools::check on my package locally, I don't get this error, but when I submit my package to CRAN, or when I run devtools::check_win_devel, I get this error: 'LazyData' is specified without a 'data' directory I successfully submitted…
s460
  • 467
  • 2
  • 9
20
votes
5 answers

Detecting geographic clusters

I have a R data.frame containing longitude, latitude which spans over the entire USA map. When X number of entries are all within a small geographic region of say a few degrees longitude & a few degrees latitude, I want to be able to detect this…
jftuga
  • 1,913
  • 5
  • 26
  • 49
19
votes
3 answers

R 2.14 - detect packages without namespace

According to the R News for v2.14: All packages must have a namespace, and one is created on installation if not supplied in the sources. This means that any package without a namespace must be re-installed under this …
Suraj
  • 35,905
  • 47
  • 139
  • 250
19
votes
4 answers

Names of R's available packages

I'm eager to know, how many package names on CRAN have two, three, N characters? which combinations have not yet been used ("unpoppler") how many package names use full-caps, or camelCase? how many package names end in 2? I think it might reveal…
baptiste
  • 75,767
  • 19
  • 198
  • 294
18
votes
3 answers

Include non-CRAN package in CRAN package

The question is pretty simple. First: Is it possible to include a non-CRAN (or bioconductor, or omega hat) package in a CRAN package and actually use tools from that package in examples. If yes how does one set up the DESCRIPTION file etc. to…
Tyler Rinker
  • 108,132
  • 65
  • 322
  • 519
18
votes
6 answers

Installing all CRAN packages that are not already installed?

The following R commands will install all CRAN packages: availablePackages <- available.packages()[,1] install.packages(availablePackages) And the following command will list all installed packages: installedPackages <- .packages(all.available =…
knorv
  • 49,059
  • 74
  • 210
  • 294
18
votes
5 answers

Installing packages onto R

For some reason I am suddenly not able to install packages in R (I have subsequently updated to the latest version of R and am running Windows 7). For example, if I type: install.packages('beeswarm') Installing package into ‘D:/Rlibs’ (as ‘lib’ is…
user2407346
  • 181
  • 1
  • 1
  • 4
18
votes
1 answer

What are the steps in submitting an R-package to CRAN and how long does each step take?

I have noticed that once submitted to incoming (ftp://cran.r-project.org/incoming) the package name receives the following suffixes .save, .pending and .noemail. Then, the package disappears from incoming. I suppose the next step is that the CRAN…
user1134616
  • 596
  • 6
  • 14
17
votes
5 answers

How to make a CRAN package to download data only once regardless of OS?

The CRAN policy limits R package size to 5 Mb, which is little for graphical applications such as mapping. There are multiple ways of handling the package size limitations, all of which come with their drawbacks. The alternatives have been listed…
Mikko
  • 7,530
  • 8
  • 55
  • 92
17
votes
5 answers

R check warning: Files in the 'vignettes' directory but no files in 'inst/doc'

Lately I get a warning for my vignette on Win R Development Version when doing a cran check. Files in the 'vignettes' directory but no files in 'inst/doc' This warning only appears with the Win Dev version. For Mac, AppVeyor and Travis no warning…
Steffen Moritz
  • 7,277
  • 11
  • 36
  • 55
17
votes
1 answer

raise a NOTE exception during R CMD check

Is there any way I could raise my own NOTE exception from within the unit tests in the checking tests ... step of R CMD check? In general I would like to have a NOTE in 00check.log if database was not available during unit tests. Dirty solutions…
jangorecki
  • 16,384
  • 4
  • 79
  • 160
17
votes
6 answers

Online Tool for Cran checks

Even when I am afraid to be a bit off-topic, but I am not sure where else to ask this, sorry! I am developing my R-package using a Linux system, hence I can run the R CMD check --as-cran command easily for Linux. For Windows it is also possible…
Daniel Fischer
  • 3,280
  • 1
  • 18
  • 29
17
votes
1 answer

Are there any R package repository management tools?

I'm creating a custom R package repository and would like to replicate the CRAN archive structure whereby old versions of packages are stored in the src/contrib/Archive/packageName/directory. I'd like to use the install_version function in devtools…
Erik Shilts
  • 4,389
  • 2
  • 26
  • 51
15
votes
1 answer

How to keep abreast of known bugs and bug fixes in R packages?

Is there a standard R community resource for keeping up to date on known bugs or bug fixes for packages? My current approach is rather manual. (NB: I'm restricting this to CRAN - see Note 1.) My use case is basically bug surveillance and the…
Iterator
  • 20,250
  • 12
  • 75
  • 111
1 2
3
56 57