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
0
votes
1 answer

Does CRAN require separate files for each .R and .cpp function in packages?

I want to submit an R package to CRAN. All packages that I know have a separate .R or .cpp file for each of their .R or .cpp functions, respectively. Is this a necessary property for a package to be accepted by CRAN?
0
votes
1 answer

Error only when I submit my package to CRAN

I submitted my package CDatanet. Before that I checked (as CRAN) locally on Linux and I did not get any error. I only get a note about my address mail (which is normal). However, when I submitted the package to CRAN, I got a warning and an error…
Ari.stat
  • 463
  • 4
  • 13
0
votes
2 answers

R package check stuck on "checking use of S3 registration ..."

I am developing an R package which I plan to upload to CRAN. Upon checking the tarball created with R CMD BUILD, I try to use R CMD CHECK as follows: R CMD CHECK my_package.tar.gz --as-cran This normally works smoothly. However, in this case, it is…
EB2127
  • 1,788
  • 3
  • 22
  • 43
0
votes
1 answer

Can't install tmap R Package

I am having trouble installing the tmap R package. I am trying to install it using install.packages("tmap") and mn receiving this error: Error: package or namespace load failed for ‘tmap’ in namespaceExport(ns, exports): undefined exports:…
Nick H
  • 3
  • 1
0
votes
1 answer

R CMD check NOTE: `No visible binding for global variable`, when defining a variable in an S3 generic and using it in a method

Consider the following piece of code: greet <- function(object) { greeting <- "hola" UseMethod("greet", object) } greet.character <- function(object) paste(greeting, object) greet("stackoverflow") #> [1] "hola…
pppqqq
  • 163
  • 1
  • 7
0
votes
0 answers

Install R package ERROR installing binary package failed

I'm newbie for R and I built my R package for my users that built without error. When I install on Windows with devtools::install_local(path = "MyPackage.zip", dependencies = TRUE). I got error * installing *binary* package 'MyPackage' ... cp:…
3ORZ
  • 79
  • 1
  • 3
0
votes
1 answer

R: Error in as.environment(pos) / Error during wrapup: no item called "package:[package]" on the search list

This is similar to this but with a followup question: I'm preparing my package for submission to CRAN. In one script, it gives the titular error: Error in as.environment(pos): no item called "package:shapefiles" on the search list or Error during…
dez93_2000
  • 1,730
  • 2
  • 23
  • 34
0
votes
1 answer

How to install Tsintermittent package in google colab?

I'm new to R programming and not able to install the tsintermittent package in google colab using R. https://rdrr.io/cran/tsintermittent/
0
votes
1 answer

Updating Vignettes in R

I found a mistake in a vignette I wrote for my R package. To re-upload the vignette, do I need to resubmit the entire package to CRAN? I'm thinking of this from the CRAN side that I don't want to make someone have to review my entire package when…
John Smith
  • 133
  • 8
0
votes
2 answers

How to export CRAN packages to Conda yaml file?

I need to export a Conda R environment with a number of packages. All except one are available through a Conda channel, so can be trivially added. The problem is the package BiDAG, which is on CRAN, but none of the Conda channels. When I run…
Abelaer
  • 25
  • 4
0
votes
0 answers

How do I update a CRAN package after submission, if the Windows binary failed to build?

I submitted a package to CRAN recently, which was a great achievement for me. Within 48 hours, I found that the Windows binary didn't build correctly due to a mistake on my part. Using rhub, I corrected this and would like the corrected version on…
EB2127
  • 1,788
  • 3
  • 22
  • 43
0
votes
1 answer

Using RJSONIO with R 2.13 Win7 (64-bit)?

I am having trouble installing RJSONIO for R version 2.13.0 I can manually download the binary and install it, but I can't use the library because it is "not installed for 'arch=x64'" There is a similar question here: Trouble installing RJSONIO…
Jacob
  • 1
0
votes
0 answers

How to resolve NoOMP flags from CRAN?

I am submitting an R package to CRAN with C++ code. I've read and re-read Section 1.2.1.1 "OpenMP support" in the manual: https://cran.r-project.org/doc/manuals/r-devel/R-exts.html#OpenMP-support Based on this, I use conditionals for any OpenMP…
EB2127
  • 1,788
  • 3
  • 22
  • 43
0
votes
1 answer

R CHECK issue on CRAN related to C++ complex numbers

I'm doing a package using 'Rcpp' and it contains this function: Eigen::MatrixXcd matricesToMatrixXcd(const Eigen::MatrixXd& Re, const Eigen::MatrixXd& Im) { return Re.cast>() + 1i *…
Stéphane Laurent
  • 75,186
  • 15
  • 119
  • 225
0
votes
0 answers

Package "factoextra" non-zero exit status

I am attempting to install the package factoextra to work on cluster analysis, however I cannot get it to install properly. It is the package maintained by DataNovia, so I would assume the package should be functional and it is somehow on my end. I…