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
0 answers

Installing new packages do not work, always getting errors

As an Example: install.packages("mosaic") Installing package into ‘\\abc/User/username/Dokumente/R/win-library/3.5’ (as ‘lib’ is unspecified) Warning in install.packages : downloaded length 2424832 != reported length 3316431 trying URL…
0
votes
0 answers

The package obdc is listed on CRAN-R but not available to install

I'm trying to run MS SQL Server scrips in a R script and learning how to do this. The way I found to be the the most complete is through DBI + obdc package. And then the problem appear: package ‘obdc’ is not available (for R version 4.0.2) I've…
0
votes
1 answer

Error: could not find function "chooseCRANmirror"

I use R on via the terminal on macOS Catalina. I had run into issues installing libraries, e.g. > install.packages("caret") Warning: unable to access index for repository http://cran.revolutionanalytics.com/src/contrib: cannot open URL…
user438383
  • 5,716
  • 8
  • 28
  • 43
0
votes
0 answers

Memory Issues in R CRAN Package

I have successfully uploaded R package in CRAN. Now I want to publish its article. Reviewer 2 returned the paper due to memory usage issues. Now I am confused about this objection, how to solve this. Generally, my package is about density plots and…
Angel
  • 184
  • 1
  • 14
0
votes
1 answer

R best practices : for CRAN, should you optimize or keep the base methods

I'm writing for my package on CRAN, on the way to optimize the speed. I've seen one main problem, which is that the "base" (stats actually) methods for time series are quite slow, especially when you work with same tsp. set.seed(1) a <-…
Arnaud Feldmann
  • 761
  • 5
  • 17
0
votes
1 answer

deSolve ode.2D in R - changing parameter in spatial dimensions

I am trying to solve a model of ordinary differential equations in 2D using the function ode.2D in the package deSolve in R. My current code is: library(deSolve) ModelDif <- function (time, y, pars, N, Da, dx) { NN <- N*N Nsp <- matrix(nrow = N,…
user3369539
  • 35
  • 1
  • 4
0
votes
1 answer

How to set up start date in time series in with hourly data

I have a time series that is hourly electricity load in Ireland. This is the data frame: > head(load2) # A tibble: 6 x 4 datetime fecha hora load_MWH 1 2018-01-01 00:00:00…
0
votes
1 answer

After finish creating R function; proof the correction by using this function with sample values in vignette. The error said "unused argument (...)"

I am trying to update R package version on CRAN by updating function. I met a wired situation where, after the function be created. And the sample is in the vignette file The sample code I used is my_function(seasonal.periods = c(7, 365), n = 800,…
user13971133
0
votes
1 answer

If I want to upper version for a CRAN exist R package (from 0.2.0 to 0.2.1) , do I need to delete "CRAN-RELEASE" in R package?

I find that there is a CRAN-RELEASE file inside package after I first time release the package. It said "This package was submitted to CRAN on 2020-07-25. Once it is accepted, delete this file and tag the release (commit ...)." Since I already has…
user13971133
0
votes
1 answer

The CRAN check results shows that for "r-release-windows-ix86+x86_64" it is an ERROR

got an question for R release. I have upload R package to CRAN. However, after CRAN Package Check Results finish, the result shows as below: Is there a way to check whether this problem is fix or not without release a 0.2.1 package to CRAN? (I tried…
user13971133
0
votes
0 answers

check_win_release || Connection timed out after

I'm interested to check if my package is compatible with the windows platform. The library was developed on debian system Platform: x86_64-pc-linux-gnu (64-bit). In order to check windows' comparability I run devtools::check_win_release() which…
Death Metal
  • 830
  • 3
  • 9
  • 26
0
votes
1 answer

Get the current numbers of CRAN packages and Bioconductor packages

I am trying to insert the current number of CRAN packages and the number of Bioconductor packages to a markdown file. I have tried this: length(available.packages(available_packages_filters = c("CRAN"))) I got [1] 272867 This is different from the…
Zhiqiang Wang
  • 6,206
  • 2
  • 13
  • 27
0
votes
1 answer

Is there a one-off method to replace print()/cut() to message()/warning() in r

I want to replace print()/cat() by message()/warning() as I want it to be suppressed. However, my code looks quite nested print()/cat() and used print()/cat() multiple times. I wonder if there is an easier way to fix this problem one-off. Instead of…
user13971133
0
votes
1 answer

Configure Travis CI run exactly the same checks as check --as-cran?

Is there a way to get Travis CI to perform exactly the same checks as R CMD check --as-cran ? Currently my check passes --as-cran locally with 0 errors and 0 warnings. But I see lots of warnings via Travis CI which don't occur during CRAN…
stevec
  • 41,291
  • 27
  • 223
  • 311
0
votes
0 answers

Error "connections left open" during R CMD check on windows

I am running the R CMD check --as-cran option to check a package which I am writing before the submission to CRAN. The tests on MAC and Linux seems to be ok. However, checking the package on Windows returns me an ERROR (below). I already tried to…