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

How to use tryCatch without global variables or superassignment

I am writing an R package with a tryCatch() loop of the following form, in which I first try to fit a model using an error-prone method but then use a safer method if the first fails: # this function adds 2 to x safe_function = function(x) { …
half-pass
  • 1,851
  • 4
  • 22
  • 33
0
votes
0 answers

Possibility of using multiple CRAN mirrors? [RStudio]

I've spent the last 4 hours trying to find out why I wasn't able to install any packages in R (it started with me trying to install a package I was developing). It would just stall for +5 minutes without doing anything or outputting anything to the…
Zeke
  • 617
  • 1
  • 6
  • 15
0
votes
1 answer

getting lazy data without attaching package

Background: I have a CRAN R package which has a dependency on lazy-loaded data in another CRAN package of a specific version. I need to avoid using :: to refer to the data, because it causes CRAN check to fail. I've read: Evaluate function within…
Jack Wasey
  • 3,360
  • 24
  • 43
0
votes
0 answers

CRAN submission works only on mac Keras. Architecture is 32bit however this version of Python is compiled for 64bit. Execution halted

I am submitting a package to CRAN and recently got the email rejection saying that while it passed the mac check, it failed the Windows and Debian check. It seems to be a problem with finding keras (Debian) and having the wrong architecture…
Travasaurus
  • 601
  • 1
  • 8
  • 26
0
votes
0 answers

Cannot access repositories on R (in Ubuntu), except for attemps on "vanilla" session

I have reproduced this error in R versions 3.2.3 and 3.4.4; running both through terminal or within RStudio GUI. My OS is Ubuntu Linux 16.04 LTS. The problem started this week. I found that the problem does not occur on a R --vanilla session. When I…
0
votes
1 answer

Cannot install R packages on Azure Databricks: null TypeError

I am trying to install some R CRAN packages on Azure Databricks (for example, the lime package) using the default way (see screenshots below). This fails with slightly different error messages depending on whether I use Firefox or Chrome: Error:…
Thomas
  • 4,696
  • 5
  • 36
  • 71
0
votes
0 answers

How to successfully download the old version of lsmeans package

I'd like to download version 2.26-3 of lsmeans package. An error occurs when I try to download an old version of the lsmeans package. I've tried two options for downloading the old versions of lsmeans. Option 1) path<-…
SkipT
  • 1
0
votes
1 answer

What is the best way to model year covariates when predicting BLUPs in CRAN sommer package?

I have a biparental population of plants with high-density SNP/SSR marker data for all individuals and phenotypic data taken over three independent years. I've modeled each year separately for each trait of interest to calculate breeding values for…
bliptrip
  • 51
  • 2
0
votes
1 answer

Dragging a column to the leftmost

I am a newbie on R and my question may be too simple. I am trying to draw a hierarchical cluster. I use readxl to read the data from a xlsx file. The dendextend package also includes the year column to calculations. I want to drag the year column to…
terzy
  • 13
  • 4
0
votes
1 answer

common packages between Bioconductor and CRAN

Is there any package which is submitted in both Bioconductor and CRAN repositories? Can a package be submitted in both repositories? How can we realize that?
minoo
  • 555
  • 5
  • 20
0
votes
0 answers

Trying to build a package in R.

I am trying to install a package from github. But my mac is telling me I need additional build tools. It then takes me to a web page. I simply want to install blotter library(devtools) install_github("braverock/blotter") …
Jordan Wrong
  • 1,205
  • 1
  • 12
  • 32
0
votes
1 answer

R: How do I install packages and dependencies offline

Firstly, I am aware of the other post on the topic, but it does not resolve my problem. Offline install of R package and dependencies I need to install a number of packages on an offline Ubuntu machine, but the dependencies keep messing up. First I…
Esben Eickhardt
  • 3,183
  • 2
  • 35
  • 56
0
votes
3 answers

cannot open shared object file: No such file or directory Rglpk

I have installed the R package "Rglpk" manually in following manner as root user on ec2-instance of Redhat 7: mkdir -p GLPK wget http://ftp.gnu.org/gnu/glpk/glpk-4.47.tar.gz tar xvf glpk-4.47.tar.gz cd glpk-4.47 ./configure…
Arshanvit
  • 417
  • 1
  • 7
  • 28
0
votes
0 answers

CRAN Package check page shows error for previously submitted package

I was about to send updated package to CRAN. Then I am asked to agree that I fixed following issues found in previous package (which was added to CRAN anyway). But how to fix this? How to make package installable on r-oldrel-osx-x86_64 Google…
Artie Ladie
  • 521
  • 4
  • 14
0
votes
1 answer

While I install my R package (for testing) it also re-installs all the dependencies (first time) that are already present on the system

I have a code to track objects in the images. This code uses few function from the package clue. So clue is already installed in my system. Now I have created a package using the same code. My description file has following lines. Depends: R (>=…
XtrimA
  • 143
  • 11