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

How to estimate an SUR model in R with factors to be projected out and clustered standard errors?

I want to estimate an SUR (Seemingly Unrelated Regressions) model. I tried using systemfit and its wrapper Zelig. But I am not able to understand how to specify factors to be projected out (i.e., add fixed effects) and cluster the standard errors,…
Anisha Garg
  • 53
  • 5
  • 10
0
votes
1 answer

Trying to get rid of the devtools::check() warning and note regarding 'checkbashisms', package size, and GNU SystemRequirements?

I am developing my first R package with the dependency rstan on macOS. So far, I receive one warning and two notes from devtools::check() on RStudio. > checking top-level files ... WARNING A complete check needs the 'checkbashisms' script. See…
0
votes
1 answer

R cut - labels have look-ahead bias

I just can't get this trivial behaviour to work. I've included a lot of examples to show the problem. I have minute bar data and I'd like to group 15 bars and execute a function on them which will then result in 15-min bar data. The timestamps that…
s5s
  • 11,159
  • 21
  • 74
  • 121
0
votes
1 answer

Call R from Command Line on OSX

I'm working with a program called msBayes that has a couple of R dependencies and, as far as I can tell, cannot access the necessary packages if I load them in either the GUI R interface or Rstudio. I know that R can be called through the command…
0
votes
1 answer

igraph Components: Which Algorithm (citation)?

I'm using igraph in academic research and I need to provide a proper citation for the algorithm used in the components() command. This algorithm returns the connected components of the graph. The command in question is documented here. It's part of…
ABC
  • 133
  • 5
0
votes
1 answer

How do I move this ansible task (to install R packages) from a playbook to a role?

I'm automating my mac setup using ansible, having great success. I just can't figure out how to move one particular task from my playbook (where it succeeds) to a role. The task relies on a module (or possibly a role: it's not entirely clear to me…
Mike
  • 1
  • 1
  • 3
0
votes
1 answer

Install R Shiny in a Computer that has no internet connection

Hi I'm doing a government procedure which must be done on a brand new CPU, and I'm running a shiny app from zero and without internet connectivity. That means that I have to install R and RStudio from the very beginning and then run a shiny app all…
0
votes
1 answer

How to download R package from archive

There are lot of files and I need to install DMwr package https://cran-archive.r-project.org/web/checks/2021/2021-03-16_check_results_DMwR.html (as it is removed from CRAN) for windows. There is not a single tutorial to download the package hanits…
xrxrxrxxr
  • 89
  • 1
  • 7
0
votes
0 answers

How do I remove the Palmer penguins CRAN error?

I am using the package for the palmer penguins in R but I keep getting the message: Error in contrib.url (repos, source): trying to use CRAN without setting a mirror calls...... What am I doing wrong? I would like to knit my R-Markdown but everytime…
NoobKim
  • 21
  • 6
0
votes
2 answers

Manually installing CRAN to access xtable library

I tried installing CRAN into R using install.packages("cran") The code would run but in the console the following message would appear package ‘cran’ is not available for this version of R How can I install cran on my version of R?
a1b2c3
  • 25
  • 5
0
votes
0 answers

How to deal with namespace dependencies from other packages when creating a package in R?

I am creating my own package in R. Within my package I am using the ggnet2 function from GGally package. I am trying to get my package CRAN ready and Im using a bunch of tests from the devtools package. My issue is, I get an error when I run the…
Electrino
  • 2,636
  • 3
  • 18
  • 40
0
votes
1 answer

How can I get the C++ source code of a package on CRAN?

I am interested in the source code of the package https://rdrr.io/cran/fclust/, particularly the functions RI.F and ARI.F, but could only find the R…
Make42
  • 12,236
  • 24
  • 79
  • 155
0
votes
2 answers

R function for CDF for Difference of Two Uniform Distributions

I'm having a hard time finding an R function that does what I want. Suppose I have two uniform distributions, A~U[alow,ahigh] and B~U(blow,bhigh). There's a random variable Z=A-B, the difference between these two uniform distributions. I need a…
ABC
  • 133
  • 5
0
votes
1 answer

Output from R package to user's home filespace without being "malicious or anti-social"

I'm writing a package to generate a PDF of bridge card hands. While intermediate files are saved to temporary files and then unlinked, the ultimate PDF needs to be saved so that it can be printed or saved into a collection. This contradicts the…
Tech Commodities
  • 1,884
  • 6
  • 13
0
votes
1 answer

How to conduct unconditional quantile regression in R?

The only package I know that does unconditional quantile regression in R is uqr. Unfortunately, it's been removed from CRAN. Even though I can still use it, its functionality is limited (e.g., does not conduct significance tests or allow to compare…