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

Compilation error of R package

I want to compile hsphase package (R package available in CRAN). I used this command in R install.packages("hsphase"). I have got the following errors: g++ -m64 -shared -L/usr/lib64/R/lib -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o…
user1436187
  • 3,252
  • 3
  • 26
  • 59
0
votes
1 answer

Uninstall/Update R in El Capitan

I'm trying to update R from 3.2.2 (Fire safety) to 3.3.1 (Bug in your hair) on MacOS 10.11.15 (El Capitan). Initially I tried to use the R-3.3.1.pkg from CRAN, which allowed me to use the new version in R.app. However when trying to access R through…
Czeslaw
  • 153
  • 1
  • 9
0
votes
1 answer

How to setup a local repository for R package?

I want to setup local repository for R package, I'd like the repository works like sonatype nexus(it can proxy the central repository, and cache the artifacts after downloading the artifact from central repository). Currently nexus does not support…
0
votes
2 answers

Define Global Variables when creating packages

I have this problem. I am creating a new package with name "mypackagefunction" for R whose partial code is this mypackagefunction<-function(){ ##This is the constructor of my package ##1st step: define variables gdata <<- NULL #... …
0
votes
0 answers

Compatibility for Non-CRAN Source Packages

I wrote an internal R package and have saved it as a zipped source package. If a user has the most up-to-date version R version 3.3.0 (2016-05-03) that the package was built on, it runs fine. But if they have not updated yet, it does not install: >…
Pierre L
  • 28,203
  • 6
  • 47
  • 69
0
votes
5 answers

How can I install a R package on a offline Debian machine?

I have an Debian VM which is not connected to internet. Yet, I can still scp any file from my local machine which does have internet connection. To provide a little bit context, I am trying to host an shiny app on the VM. I can still install an old…
Mark Li
  • 429
  • 1
  • 7
  • 21
0
votes
0 answers

How to remain in the 3.2.4 release of R

I am on Ubuntu 14.04 and work with 3.2.4 Revised. I would like to remain with this version when 3.3.0 gets released. However if I block the CRAN repository in /etc/apt/sources.list I will not receive updates to the 3.2.4 (even the distribution…
ECII
  • 10,297
  • 18
  • 80
  • 121
0
votes
0 answers

R: DESCRIPTION-file fails to import the dependencies

still having some problems with creating R-package. I'm trying to organize some import dependencies to my package and this seems to go wrong. I setup my DESCRIPTION-file as shown below and when i call the first method i get an error. It seems like…
Lycone
  • 650
  • 9
  • 18
0
votes
0 answers

Apache + R private repository + Authentication + HTTPS + Install old version

My situation is: Apache web server on Linux machine R local repository (Mirror in /var/www/html/repositories/CRAN) Posibility of upload/download personal packages to "private" repositories (/var/www/html/repositories/private1) Basic authentication…
user2558672
  • 87
  • 1
  • 7
0
votes
0 answers

JPEG2000 in R or batch convert to geotiff

I am looking to open .jp2 images into R. I have Sentinel-2 satellite imagery, but I cannot seem to get JPEG2000 GDAL drivers installed correctly or linked to my R environment. I’ve tried working with Jasper, but that didn’t work out as I hoped. Are…
Lisa
  • 1
  • 2
0
votes
1 answer

Dependencies 'dplyr','XML'not available for package

I am creating an R package I have completed the R CMD Build and R CMD Check and removed all warnings. I am trying to install the .tar.gz on another machine to see whether it goes through fine. But I get this error > …
Tinniam V. Ganesh
  • 1,979
  • 6
  • 26
  • 51
0
votes
0 answers

Upload R package to local repository

Is there any R method or function for uploading a personal R package to CRAN local repository? I think if you move your tar.gz, or your compiled code (windows) to appropiate directory /bin/windows or /src/contrib it would work. But, is there any…
user2558672
  • 87
  • 1
  • 7
0
votes
0 answers

R local repository synchronized with CRAN remote repository

Is there any form of creating a R local repository on a Windows server which if I ask for an R package that isn't in local one, it ask for the remote CRAN one? An scheme: R desktop IDE on Windows -> R local repository in a Windows server -> If…
user2558672
  • 87
  • 1
  • 7
0
votes
1 answer

Can't install rgl in order to install TSclust

Not sure what is happening but I can't install rgl with or without flag: > install.packages("rgl", dependencies=TRUE) also installing the dependencies ‘mime’, ‘stringi’, ‘magrittr’, ‘bitops’, ‘evaluate’, ‘digest’, ‘formatR’, ‘highr’, ‘markdown’,…
Mona Jalal
  • 34,860
  • 64
  • 239
  • 408
0
votes
0 answers

Put figure directly into Knitr document (without saving file of it in folder) Part 2

I am extending a question I recently posted here (Put figure directly into Knitr document (without saving file of it in folder)). I am writing an R package that generates a .pdf file for users that outputs summarizations of data. I have a .Rnw…
user4148072