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

Parse a string with (dots) arguments

Is there a way to parse a string with arguments into a list of language objects? For example: > query <- "mpg, cyl, hp:vs" > eval(parse(text=paste0("dplyr:::dots(", query, ")"))) [[1]] mpg [[2]] cyl [[3]] hp:vs But that is ugly, can result in…
Jeroen Ooms
  • 31,998
  • 35
  • 134
  • 207
0
votes
1 answer

R's XML package throws error on correct XML document

I should parse many XML documents using the R software using the XML package (Duncan Temple Lang, 2013). Here is an example: http://musicbrainz.org/ws/2/release?query=%22A%20Is%20for%20Alpine%22%20AND%20artist:%22Alpine%22 If the link is copy-pasted…
Fabio
  • 518
  • 1
  • 4
  • 10
0
votes
1 answer

How to manage internal utility functions shared by two R packages

I am developing an R package but I would like to break it down into two packages, say A and B, where B depends on A. In the course of development I have created a number of internal utility functions, say .util1(), .util2(), etc. They are useful…
Matteo Fasiolo
  • 541
  • 6
  • 17
0
votes
1 answer

Find absolute path of a user home library in Unix systems

How can I find the absolute path of the personal R package library for a certain user on a Unix system (including Linux, OSX, Solaris)? To get the home path of the current user, we can use: path.expand(Sys.getenv("R_LIBS_USER")) However, I would…
Jeroen Ooms
  • 31,998
  • 35
  • 134
  • 207
0
votes
2 answers

install R packages automatically

I created a R package. The DESCRIPTION file of this package is as follows: Package: Ralgotree Type: Package Title: package about securiy information Version: 1.0 Date: 2013-02-15 Author: algotree Maintainer:…
Dinoop Nair
  • 2,663
  • 6
  • 31
  • 51
0
votes
1 answer

R-Cran decision tree

I am trying to use the tree Package in R-cran. I am loading my csv file as follows: data <- read.csv("C:/data2.csv", header = FALSE, sep = ";",dec = ".") The last column in the file represents the Class Is that correct? My question is should the…
Hani Goc
  • 2,371
  • 5
  • 45
  • 89
0
votes
1 answer

How to convert from shape into polygon in R? There was shape2poly(shapefiles) but this function have been removed

How to convert from shape into polygon in R? There was shape2poly(shapefiles) but this function have been removed, are shapefiles, maptools, spdep still packages for handling maps in R?
Qbik
  • 5,885
  • 14
  • 62
  • 93
0
votes
2 answers

MWTP in R with significantly positive variable for Price - Unexpected Results

I am using the support.CEs package in R for a choice experiment. I am attempting to calculate Marginal Willingness To Pay (MWTP). The package seems to be relatively new, and I have reviewed the CRAN documents as well as the article found…
0
votes
0 answers

R rjava noclassdeffound

I've been using the xlsx package for R successfully for a while now. That package requires rjava and ever since the most recent Windows update, rjava now throws an error in R. The error is: require(xlsx) Loading required package: xlsx Loading…
user1505631
  • 527
  • 4
  • 13
0
votes
0 answers

R package build failure on Mac OS X

The MongoDB driver package rmongodb crashes R 2.15.2, as per this issue. The author has fixed the problem on GitHub but CRAN hasn't updated. The author only has access to a Windows platform and cannot build the package for Mac OS X. When I attempt…
Sim
  • 13,147
  • 9
  • 66
  • 95
-1
votes
1 answer

Using .Call for C_pKolmogorov2x in R package submitted to CRAN

I'm preparing the package in R language for the CRAN submission. However, I've to calculate the p-value for the one-sample Kolmogorov-Smirnow test using the external call to the function C_pKolmogorov2x from the stats package, i.e. 1-…
errenay
  • 1
  • 1
-1
votes
1 answer

R package development check, build, and install runtime is very slow (due to GitHub?)

there. I am creating a Stan-based R package. I know that the devtools::check(args = c('--as-cran')) runtime (which involves compiling the C++ codes) is slow. In my case, it takes about 20 minutes. Fortunately, the devtools::check_win_release() and…
-1
votes
1 answer

how to resolve "missing arguments not allowed in calls to ‘list’" for R package development?

I am creating an R package and trying to run devtools::check(). The results appear as follows : checking R code for possible problems ... NOTE myFunction: missing arguments not allowed in calls to ‘list’ How to know which argument is missing?…
monabiyan
  • 9
  • 2
-1
votes
1 answer

R CMD check in my computer and in CRAN auto check

In my computer, R CMD check said 0 NOTE, 0 WARNING, 0 ERROR and I submitted to CRAN. But, cran auto check said that there are errors, warnings and notes. Why? R is latest version 3.6.1 and I use --as-cran option. I geuss the reason relates the fact…
Camford Oxbridge
  • 834
  • 8
  • 21
-1
votes
1 answer

R roxygen2: Do not show function in list

This question is about using roxygen2 and not about how to override a function. I am using roxygen2 for a CRAN package and I am trying to achieve the following: There is a function called my.function whose function name I want to replace with…
Steffen Moritz
  • 7,277
  • 11
  • 36
  • 55
1 2 3
56
57