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

Files are being saved in the user filespace when sending to CRAN

When sending my package to CRAN, I received the warning "but you must not write to the user filespace in examples, please use the session dir via tempdir ()." However, it includes a conditional to save and in my example I put it as FALSE. In the…
Igor Cobelo
  • 419
  • 3
  • 12
0
votes
1 answer

Function documented in package downloaded from CRAN but not available when loading the package. Function reverselog_trans from ACSNMineR

I have installed using R studio the package ACSNMineR from CRAN. In the documentation of CRAN: https://cran.r-project.org/web/packages/ACSNMineR/ACSNMineR.pdf, it appears a function named reverselog_trans, but when I load the package through…
Santiago I. Hurtado
  • 1,113
  • 1
  • 10
  • 23
0
votes
0 answers

I cant find package tools in cran and github

I need to include package tools on my shiny app. but I can't find the package in cran nor GitHub, where exactly is it housed. it is already installed on my R but I suspect it was installed as a dependency. it is the library discussed…
0
votes
0 answers

Recursively checking for R package dependencies

I maintain a small R package but the question is more generalizable to understanding what packages are "required" to run some arbitrary function. I became interested when my package started failing rhub checks for the devel branch. Reporting that…
Chuck P
  • 3,862
  • 3
  • 9
  • 20
0
votes
1 answer

How to include dataset in a r-package?

I'm trying include dataset in my r-package. So, I puted the .rda files in the folder /data. In my examples environment I loaded the dataset by the way: load("~/mypackage/data/database.rda") But, when I submited for CRAN, their reported the follows…
0
votes
1 answer

R CMD CHECK --as-cran failing on OS X Catalina

I am building a new R package on an iMac w/ Catalina. I have installed the latest XCode and XQuartz. My new package builds fine, i.e. R CMD BUILD conicFit runs without error. Then I tried R CMD CHECK --as-cran conicFit and get this error: …
Carl Witthoft
  • 20,573
  • 9
  • 43
  • 73
0
votes
0 answers

Extracting data from (sub-) websites using R or RStudio

Working on a project to list all available R packages listed on the CRAN website to support our data science projects. All the listed packages are sub-sites of the main CRAN website. Is there a "simple" way to extract information of the over 1500…
0
votes
1 answer

Questions about R package publishing and code visibility

When I use a package in R I install it and use it with loading it. Now what if I add a package which uses another package? Is this package automatically downloaded and loaded too? Or is it in general forbidden for a R package to use another package?…
Stat Tistician
  • 813
  • 5
  • 17
  • 45
0
votes
1 answer

package ‘car’ is not available (for R version 3.4.4)

I am trying to run an R application(on Ubuntu 16.04.6) which uses the 'car' package, but everything I tried ended with the following error package ‘car’ is not available (for R version 3.4.4) . What should I do?
0
votes
1 answer

Hostnames/IP adresses of packages from pypi, CRAN, maven,

We have server behind proxy and we want this server to be able to run commands such as: python: pip install module R: install.packages("fortunes") ... Simply to install packages from these sources. Since we are behind proxy, we cannot install…
mLC
  • 663
  • 10
  • 22
0
votes
0 answers

str_split() function not found

I'm using R version 3.3 and I'm using the str_split() function from stringr package, but I'm unable to execute it as the compiler is throwing error here's my code: y <- str_split(x, "'") ret <- map_dbl(y, function(z){ ifelse(length(z)>1, …
ranjir
  • 3
  • 3
0
votes
0 answers

Centos 8, R, EPEL 8, dplyr --> `GLIBCXX_3.4.26' not found

I'm on Centos 8, dictated by corporate IT. I have EPEL 8 added to the repositories, and I've installed R. I'm trying to install the popular CRAN package, dplyr, so I can use its functions in R. I've used it a pile of times on different environments,…
chrysrobyn
  • 73
  • 1
  • 10
0
votes
1 answer

Can an official CRAN R package depend on Intel MKL and CMake? (and Check ?)

In my R package I have C code that uses Intel MKL (and an open source library for C unit testing). I use CMake to build the C code. I also have Rcpp interface code that I use to call the C code from R. I wanted to know if CRAN would accept this…
gomfy
  • 637
  • 8
  • 16
0
votes
0 answers

Anaconda installation of R interfers with regular R installation?

Probably a very basic question for someone who knows what they're doing. I installed anaconda and jupyter notebooks, and now which R returns /opt/anaconda3/bin/R, rather than /usr/local/bin/R as it did before. How do I change this back so that…
stevec
  • 41,291
  • 27
  • 223
  • 311
0
votes
0 answers

CRAN : how often can i push updates?

I've pushed recently my first package to CRAN, there. Is seems from the cran checking results there and from other continuous integration tools that everything is ok regarding r cmd check. However, continuing developpement of the package myself, i…
lrnv
  • 1,038
  • 8
  • 19