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

R cran : rasterized polygon and sampling site coordinates

We are trying to create a map of the Vermeille Coast in order to calculate the distance between sampling points with the condition that the path between the two points is not crossing the land. 1/ We bind two shapefile together (R cran: sf Sew two…
Florian B.
  • 21
  • 6
0
votes
1 answer

This site can’t be reached: https://cran.r-project.org/

I'm trying to install R, but when I go to the page (https://cran.r-project.org/), it gives me this message: This site can’t be reached. May you tell me why is this happening? I would like to know if it's happening to everyone, or it's just me, and…
0
votes
1 answer

how can I run r function from package in postgresql

I am trying to use the R function from a R package (https://cran.microsoft.com/snapshot/2017-04-03/web/packages/genasis/index.html) directly in Postgres without rewriting the function again, so it could be like: CREATE OR REPLACE FUNCTION funcname…
Mazenis
  • 3
  • 2
0
votes
1 answer

How to correctly use data in extdata/data folder

I am working on an R package that I would like to submit to CRAN and have had issues with the size of the data, therefore I moved it into the extdata/data folder in order to use in my examples but I am getting fatal errors that are not allowing my…
0
votes
1 answer

Modify a package function (read.dcf) in R

I have a R script that calls the updatePackages() function in MiniCRAN which in turn calls these functions: updatePackages (miniCRAN) -> oldPackages (miniCRAN) -> pkgAvail (miniCRAN) -> read.dcf (base) I wish to create my custom read.dcf function…
user9367574
  • 91
  • 1
  • 7
0
votes
0 answers

How can I install these packages?

install.packages("graphlayouts") There is a binary version available but the source version is later: binary source needs_compilation graphlayouts 0.7.1 0.8.0 TRUE Binaries will be installed package 'graphlayouts'…
0
votes
1 answer

R noob: running a simple 7-variable CSV through a bvarsv model

My simple code is yielding: Error in dimnames<-.data.frame(*tmp*, value = list(n)) : invalid 'dimnames' given for data frame Any help appreciated library(bvarsv) library(tidyverse) library(janitor) library(readxl) set.seed(1) test =…
NoobNation
  • 21
  • 3
0
votes
1 answer

Platform-spedific code (`Sys.setlocale()`) in a package vignette in R

I have plaftform-spedific code in my package vignette: x <- c("01JAN2020:00:00:00", "15JAN2020:00:00:00") # This is plaftform-spedific Sys.setlocale("LC_TIME", "English") as.Date(x, "%d%b%Y") # [1] "2020-01-01" "2020-01-15" The vignette passes R…
Thomas
  • 457
  • 2
  • 12
0
votes
0 answers

Using UNC path in miniCRAN

I have an R script that must read the packages available in a local repository stored on a network location, and I'm using UNC path to refer to that network location: currPkgs <- pkgAvail(repos="\\\\abc-def.net\\packages\\cran", type="win.binary",…
user9367574
  • 91
  • 1
  • 7
0
votes
0 answers

Installing a CRAN package for R language

I would like to install the following package for R, https://thlfi.github.io/read.gt3x/index.html When I run this command on the R command line, I get the following message, remotes::install_github("THLfi/read.gt3x") Error in loadNamespace(name)…
user6434902
  • 49
  • 3
  • 11
0
votes
0 answers

CRAN policies writing a file with an R package

I wrote the Package NetExplorer that creates a html file to visualize a network. The file was created in the user R library folder but this violates the CRAN Policies. I created the file in the TMPDIR whith the following command: tempdir <-…
Sosa
  • 141
  • 9
0
votes
2 answers

Unable to install conrib.url

I'm having trouble installing the contrib.url package in my RStudio on Windows. Please note that I am using the latest version of RStudio. I have tried different means via resources I got online and from the R online community but I keep getting…
0
votes
1 answer

install dependencies from CRAN for a package installed from source

I want to give a beta version of my package to a coworker for testing purposes. I build the package and put the .zip file on the Network Folder. The Problem is, how to tell R that it should install the package from the ZipFile but its dependencies…
Sandwichnick
  • 1,379
  • 6
  • 13
0
votes
1 answer

XRAY scanning of conda-forge / cran packages

I've been looking into scanning my Remote conda-forge and cran repositories with JFROG Xray but it seems like it's not natively supported. So naturally if I make a watch the remote-repositories of conda-forge and cran are not available to be…
Jose
  • 9
  • 1
0
votes
1 answer

dplyr::tally with factors and characters

I'm having trouble running dplyr::tally on factors and characters > data %>% dplyr::tally(true_label) Error: Problem with `summarise()` column `n`. ℹ `n = sum(true_label, na.rm = TRUE)`. x ‘sum’ not meaningful for factors Run `rlang::last_error()`…
Dima Lituiev
  • 12,544
  • 10
  • 41
  • 58