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

How can a test script inform R CMD check that it should emit a custom message?

I'm writing a R package (delftfews) here at office. we are using svUnit for unit testing. our process for describing new functionality: we define new unit tests, initially marked as DEACTIVATED; one block of tests at a time we activate them and…
mariotomo
  • 9,438
  • 8
  • 47
  • 66
29
votes
2 answers

CRAN check warning: Dependence on R version '3.4.3' not with patchlevel 0

I am submitting my R package to CRAN, and am receiving a warning from the CRAN servers that does not appear when I run R CMD CHECK --as-cran locally on the package tarball prior to uploading to CRAN. This causes my package to fail the automatic CRAN…
Pamela
  • 315
  • 3
  • 4
29
votes
7 answers

Installing an R package from local unzipped folder

I am having difficulty installing an unzipped package on a Windows 7 computer without administrative privileges and no internet access. I am using the RGui (not RStudio). Right now I have an unzipped library sitting in a directory. Unfortunately,…
Phantom Photon
  • 768
  • 2
  • 10
  • 20
29
votes
1 answer

Making non-ASCII data suitable for CRAN

I have some data that contains non-ASCII characters, that I want to include as an rda file in an R package. When I run an R CMD check on the package, I get a warning: Warning: found non-ASCII strings which is blocking it being allowed on…
Richie Cotton
  • 118,240
  • 47
  • 247
  • 360
28
votes
4 answers

Disable/suppress tcltk popup for CRAN mirror selection in R

My question is similar to a question previously posted but never really answered here: Disable GUI, graphics devices in R I do not like the R tcltk popups for CRAN mirror selection. They also pop up to choose a package when searching for help on a…
nsheff
  • 3,063
  • 2
  • 24
  • 29
28
votes
4 answers

How to satisfy both CRAN and Github license file naming requirements

(NOTE: This question includes the word "license". But let's be clear: this question is not asking for licensing advice. It is asking how to simultaneously satisfy the file naming requirements of "software tools commonly used by programmers": Github…
Richard
  • 56,349
  • 34
  • 180
  • 251
26
votes
2 answers

Using un-exported function from another R package?

I often use utility type functions from other packages that are un-exported: pkg:::fun(). I am wondering if I can use such a function within new functionality/scope in my own R package. What is the correct approach here? Is including the package in…
pat shipan
  • 715
  • 6
  • 13
25
votes
1 answer

R `parallel` package does not exist on CRAN?

I tried to google "r package parallel" but I have not found it on CRAN. I also tried the following links, but they do not…
Tomas
  • 57,621
  • 49
  • 238
  • 373
24
votes
3 answers

Using a static (prebuilt) PDF vignette in R package

What is the proper way, to include a static PDF file as a "vignette" in a CRAN package as of R 3.0? The trick described in this document of using an empty stub Rnw does not seem to work in R 3.0. The document suggests that there is now a better way…
Jeroen Ooms
  • 31,998
  • 35
  • 134
  • 207
22
votes
4 answers

Package dependencies when installing from source in R

Just confirming: If I distribute my R package as ZIP/TAR then installing the package will not automatically download/install dependencies because I have to set repos = NULL in install.packages() and dependencies parameter is not used if repos =…
Suraj
  • 35,905
  • 47
  • 139
  • 250
22
votes
4 answers

R: "make" not found when installing a R-package from local tar.gz

The R Package ConvCalendar is not on Cran repository anymore (see here). However, because I have intensively used this package for previous projects, it would be nice to have it installed on my machine, even an older version would suffice. (Windows…
Caserio
  • 472
  • 1
  • 3
  • 14
22
votes
1 answer

Computationally heavy R vignettes

I'm currently converting an JSS article, which uses knitr, to an R package vignette. However, I'm in doubt on the vignette placement, structure, and how I should handle the very long computation times it requires which is ~2 days on a ordinary…
Anders Ellern Bilgrau
  • 9,928
  • 1
  • 30
  • 37
22
votes
2 answers

Where to put package vignettes for CRAN submission?

From the Writing R Extensions Manual, I read that As from R 2.14.0 the preferred location for the Sweave sources is the subdirectory vignettes of the source packages, but for compatibility with earlier versions of R, vignette sources will be…
Gregor Thomas
  • 136,190
  • 20
  • 167
  • 294
21
votes
0 answers

Security issues with CRAN packages

[ Edit: June 2013 ] A paper has appeared on ArXiv describing this issue in greater detail, and suggesting some solutions: http://arxiv.org/abs/1303.4808. It will appear in the Journal of Statistical Software later in 2013. I have a cronjob on my…
Jeroen Ooms
  • 31,998
  • 35
  • 134
  • 207
21
votes
3 answers

How to install and manage many versions of R packages

I am developing a framework for reproducible computing with R. One problem that I am struggling with is that some R code might run perfectly in version X.Y-Z of a package, but then why you try to reproduce it 3 years later, the packages have…
Jeroen Ooms
  • 31,998
  • 35
  • 134
  • 207
1
2
3
56 57