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

Verbose output for R package building

I am trying to compile a package using: devtools::build() At some point C/C++ compilation errors crop up; however, I'm having difficulty debugging them because I don't know what command was used to compile them. Is there a way to get the build…
Richard
  • 56,349
  • 34
  • 180
  • 251
0
votes
1 answer

How to do Text Mining from a HTML document, and convert it into a CSV file?

So I'm trying to do a bit of text mining from this website "https://www.bmkg.go.id/gempabumi/gempabumi-terkini.bmkg" - particularly from lines 452 until 1050 through the Developer's Sources. I haven't been able to do that successfully; and my goal…
0
votes
2 answers

How to keep BIC, AIC and maxloglikelihood in variables when using the method maxLogL

I am fitting some distribution with the method Maximizing the Likelihood. The method implemented in R "maxLogL" is an amazing tools that works great.…
ivangtorre
  • 661
  • 1
  • 8
  • 21
0
votes
0 answers

Checking an R-devel-linux error for my CRAN package using my MacBookPro

I have a CRAN package that has inputenc errors when creating vignette PDF outputs in a strict Latin1 locale. The check results have errors for flavor r-devel-linux-x86_64-debian-clang, which uses LANG=en_US.iso885915. I believe I may have fixed the…
lavenderGem
  • 117
  • 8
0
votes
1 answer

I am trying to load a CRAN dataset for sp using the read.table function, however I do not know if I have access to the data

I am following the examples in the book "Spatial Analysis with R". I have loaded the sp package and I am trying to read the table using: Cran_df<-read.table("CRAN051001a.txt", header = TRUE) I am receiving the errors: Error in file(file, "rt") :…
OpenSauce
  • 354
  • 2
  • 14
0
votes
2 answers

R tries to install old not available packages from Artifactory

Solution Delete the .RDS in the Artifactory cache. Problem I have a very weird issue with using R 3.6.2 on Ubuntu and a corporate mirror of CRAN. Let's say I run the following command: install.packages('rlang') What I get back is that the version…
trallnag
  • 2,041
  • 1
  • 17
  • 33
0
votes
0 answers

readr package not installing on Ubuntu

Hello I am trying to install reader onto my Ubuntu VPS. I only have 1 GB of RAM which is why I can not install it. I came across Dirk's post R (Ubuntu) - Can't install packages "readr" and "eurostat" where he explained the work around. apt-get…
Jordan Wrong
  • 1,205
  • 1
  • 12
  • 32
0
votes
1 answer

org.renjin.cran libraries missing from repositories

Attempts to update our maven dependencies have recently uncovered a problem. Many errors are thrown, similar to this one: Error downloading org.renjin.cran:BH:1.62.0-1-b8 …
Charney Kaye
  • 3,667
  • 6
  • 41
  • 54
0
votes
0 answers

How to make executable examples for functions that rely on console interaction?

I submitted a package to CRAN that contains three functions. Each of these functions rely on console interaction to properly execute. I am having trouble with writing examples in the .Rd files because of the interactive nature of these functions.…
clc
  • 107
  • 6
0
votes
0 answers

Are CRAN checks publicly logged?

When we run something along the lines of R CMD check mypackage_1.2.0.tar.gz --as-cran are there public logs available? (e.g. through an API perhaps) I am interested to know because it could be useful info for package maintainers to know. Note: I am…
stevec
  • 41,291
  • 27
  • 223
  • 311
0
votes
0 answers

What determines whether a package will compile from source and how to change?

The symptom I can see is that when install.packages("dplyr") is run from one mac, it installs almost instantly, whereas the exact same command from another macbook takes ~5 minutes to install, and has a lot (100s of lines) of R console output I…
stevec
  • 41,291
  • 27
  • 223
  • 311
0
votes
0 answers

Rcpp: "GC encountered a node (0x08ca70b0) with an unknown SEXP type: 30 at memory.c:1784" on arch 'i386' only

I am trying to deploy a package to CRAN, but I'm getting errors in the Windows version's unit tests. This is the (probably) relevant part of the log file from CRAN: ** running tests for arch 'i386' ... [36s] ERROR Running 'testthat.R'…
VFreguglia
  • 2,129
  • 4
  • 14
  • 35
0
votes
0 answers

Build fails automatic checks on CRAN but not on any local checks

I am trying to submit a new package to CRAN. After submitting, I got a response that it been rejected beacuse it did not pass the automated checks. Specifically, the error message was as follows for the Windows build. * checking package…
jimmyday87
  • 791
  • 3
  • 8
0
votes
1 answer

Unable to use Vegan Package on Mac OSX catalina

Is anyone able to help with the following error code or knows a different way to install the vegan package? Tried both codes below... Need to do some MDS plots! Code: install.packages('vegan') install.packages('vegan', dependencies=TRUE,…
0
votes
0 answers

How do I resolve a "write error" installing packages on R?

I'm on a new office computer (Windows 10) which I've installed R3.6.1 and RStudio Desktop 1.2.5001 onto. However I getting an error when I try and install packages, e.g. install.packages("ggplot2") Warning in install.packages : write error in…
Amber
  • 1
  • 1