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

unable to install R library in azure ml

I have been trying to install a machine learning package that I can use in my R script. I have done placed the tarball of the installer inside a zip file and am doing install.packages("src/packagename_2.0-3.tar.gz", repos = NULL, type="source")…
tubby
  • 2,074
  • 3
  • 33
  • 55
0
votes
1 answer

Why is R prompting me and failing on `update.packages()`?

I'm new to R and I've compiled it myself on Ubuntu 14.04.3 (x64). Note, I am up to date with the R source: blong@work:~/Documents/Work/REPOS__svn/R/R-3-2-branch$ svn info |head -n 7 Path: . Working Copy Root Path:…
blong
  • 2,815
  • 8
  • 44
  • 110
0
votes
2 answers

Two NOTE messages from R CMD check --as-cran

In the process of submitting an R package to CRAN, I could not resolve two issues the reviewer encountered on his system: 1.) Package has help file(s) containing build-stage \Sexpr{} expresssons but no 'build/partial.rdb' file. 2.) Checking URLs…
user3298179
  • 163
  • 9
0
votes
0 answers

packages installation in Rstudio

I have installed Rstudio IDE yesterday only on vmware (OS:Ubuntu) and were able to fetch packages smoothly but today it has stopped working i.e. I am not able to install packages. Infact, packages that are already installed are giving the error…
Vasim
  • 257
  • 2
  • 14
0
votes
1 answer

Installing packages in R: installing "mediation" fails despite dependencies being up-to-date

I am trying to install the mediation package. However, this fails due to lacking dependencies: > install.packages("mediation") Installing package into ‘/home/simoncolumbus/R/i686-pc-linux-gnu-library/3.0’ (as ‘lib’ is unspecified) trying URL…
simoncolumbus
  • 526
  • 1
  • 8
  • 23
0
votes
0 answers

What are the dangers of non-binded global variables, and why is utils::globalVariables() not preventing a NOTE?

I'm composing a package in R 3.1.2, with RStudio, using the devtools package. When I check() the package, there is one persistent note to the effect that there is "no visible binding for global variable"... I have read several threads that suggest…
Ken
  • 41
  • 1
  • 8
0
votes
0 answers

install R 2.15.3 on vanilla Debian 7.6

Debian 7 comes with R 2.15.1 in the repositories. How can I upgrade to 2.15.3 but not to 3.x.x ?
ECII
  • 10,297
  • 18
  • 80
  • 121
0
votes
0 answers

Can't install Copula package on Mac or Linux

I have this problem with the Copula package: I can't install it on my Macbook, nor another linux system. I think I used the right command but I could not find the installed package in the lib. Any ideas? >…
0
votes
1 answer

Error in install.packages in R : file ‘test_0.1.zip’ is not an OS X binary package

I am trying to follow a manual for creating packages for R but I am stuck in the install.package step: require(devtools) build("/Users/mona/test") build("/Users/mona/test", binary=TRUE) check("/Users/mona/test", cran=FALSE) >…
Mona Jalal
  • 34,860
  • 64
  • 239
  • 408
0
votes
2 answers

R: Distinguish helper functions from main function in CRAN packages

How to distinguish helper functions from main functions in a package containing lot of functions? Is there a way to separate them by means of some standard identifier may be implemented in R? For example, I am using sets package in my R session as…
Sathish
  • 12,453
  • 3
  • 41
  • 59
0
votes
3 answers

Finding how many times the words in one array occur in another array in R?

Hi i have two arrays 'topWords' of length N (unique words), and 'observedWords' with length < N (repetitions of words). I'd like an array of counts 'countArray' of length N containing the number of times each of the N words in 'topWords' occurs in…
hearse
  • 379
  • 2
  • 4
  • 23
0
votes
1 answer

Search for reverse dependencies with versioned depends

Is there any way to search for installed packages that depend on a particular version of another package? The dependsOnPkgs function from tools does not seem to support this. I would like to find all packages on CRAN that depend/import/link Rcpp >=…
Jeroen Ooms
  • 31,998
  • 35
  • 134
  • 207
0
votes
0 answers

rpart library package installation error on R 3.0.2

Command Issued: install.packages("rpart") Error: Installing package into ‘/home/priyanka/R/x86_64-unknown-linux-gnu-library/3.0’ (as ‘lib’ is unspecified) Warning: unable to access index for repository…
priyanka
  • 244
  • 4
  • 15
0
votes
0 answers

Installing mhurdle on OS X 10.9.1

I am trying to install a package install.packages("mhurdle") But I get a warning: Warning: unable to access index for repository http://star-www.st-andrews.ac.uk/cran/bin/macosx/contrib/3.0 Warning message: package ‘mhurdle’ is not available (for…
anja
  • 3
  • 4
0
votes
1 answer

CRAN packages not unpacking on Ubuntu

Think I had done this type of command successfully before sudo su ­ ­c "R ­e \"install.packages('countrycode', repos='http://cran.rstudio.com/')\"" the screen reports Installing package into '/usr/local/lib/R/site-library' which is where other…
pssguy
  • 3,455
  • 7
  • 38
  • 68