Problems installing R packages

I'm setting up a new laptop running Gentoo and wish to install R (as I do on all of my computers!). However, I've hit a bit of a problem when it comes to installing packages. I first tried to: >...

Some R packages do not update with update.packages()

Selecting Packages->Update packages... gave: > update.packages(ask='graphics',checkBuilt=TRUE) --- Please select a CRAN mirror for use in this session --- Warning: package 'foreign' in library...

Error in install.packages in R : file ‘test_0.1.zip’ is not an OS X binary package

I am trying to follow a manual for creating packages for R but I am stuck in the install.package step: require(devtools) build("/Users/mona/test") build("/Users/mona/test",...

Couldn't install R packages on Ubuntu 14.04

I have installed R into my VM (Ubuntu 14.04) according to this page, http://www.rstudio.com/shiny/server/install-opensource and I have also installed shiny from R console like the follow. # R R...

Foreign function calls to a different package NOTE

I am preparing an R package for submission to CRAN. R CMD check gives me the following NOTE: Foreign function calls to a different package: .Fortran("cinc", ... PACKAGE = "cmprsk") ...

What is the preferred method for sharing compiled C code in an R package and running it from another?

Assume I have two packages in R, the first named foo, the second named bar. I want to include a C function in foo and share that functionality with bar in a way that is platform independent and...

R: checking DESCRIPTION meta-information ERROR

this is my question. I am trying to submit a package in CRAN. When I run the command in console R CMD check MYPACKAGE but I receive the next log, the main error says DESCRIPTION...

How do I use R to download LEHD data from the website?

I would like to know how to download LEHD files from their FTP site. https://lehd.ces.census.gov/data/lodes/LODES7/ I need to download the data for multiple years, for both workplace and resident...

Error when generating the SVA-object using package SVA in R

I am trying to apply the surrogate variable analysis (sva) package to my data, but I haven't been able to even pass beyond the model construction. I'm running into an error I can't seem to fix. My...

Is it valid to parallelize Hmisc aregimpute?

I am trying to use Hmisc::aregimpute for multiple imputation of my dataset. I would like to be able to spread the computation out over a number of cores. I tried to create a function that would...

run_example function in devtools works but check function fails when running examples

I am developing a package and I am using devtools to check the functionality of the package. I am getting some contradictory results with two of the functions from devtools. When I use...

Distributing TMB functions in R package and CRAN checks

I have 9 cpp files in /src - 8 from Rcpp and 1 from TMB. I can compile all and run code successfully OR get passed the CRAN checks. But not both. Method 1 Let R compile all cpp files and generate...

Cannot configure r-base on Linux: subprocess installed post-installation script returned error exit status 127

I'm trying to install and upgrade R on Linux (Ubuntu 16.04). However, I get a mysterious error and am having trouble diagnosing it. The most similar error that I can find online is here. The full...

Devtools install github pkg: Error in loadNamespace: no package called

I'm trying to install my own github package for the first time in a little while: install.packages("devtools") library(devtools) install_github("SimonDedman/gbm.auto") But am getting: Error in...

How can I speed up spatial operations in `dplyr::mutate()`?

I am working on a spatial problem using the sf package in conjunction with dplyr and purrr. I would prefer to perform spatial operations inside a mutate call, like so: simple_feature %>% ...

Checking my package "--as-cran" does not match the results of CRAN

The problem I am trying to send my package to cran, I already have two R packages in cran DiversityOccupancy and SpatialBall, which is to say I have done this before. I am using linux 16.04 as my...

Why do different approaches to per-feature differences in sf cause different plot zoom?

I feel as though I lack the intuition to always know how sf objects will interact with tidyverse tools, especially dplyr. Here is an example. We're looking to take two buffers of points, and then...

TwitteR r package: /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found

I have updated my OS to Ubuntu 18.04 recently and twitteR R package is not working anymore. I am having the following error message during setup_twitter_oauth. >...

R: NaN came up after as.numeric() while using dplyr sparklyr / maniplating data with pipes in sparklyr connection

I began to use sparklyr to handle big size data, so I need to use only pipe lines. But while manupulating data frame I got in trouble and it seems by csj %>% head() below is how my data looks...

Fortran subroutine not available for R package

An old project of mine has started showing a new behavior, a fortran subroutine that has been available for use by the R package no longer available. The package has both C++ and Fortran code in...

R package vignette: no vignette index warning

I have a new R package called stationery and it includes information about how to use LaTeX and Markdown documents with customized templates. When I build the package in Ubuntu Linux, the...

R - can't install swirl on mac

I have tried so many ways, still can't fix this. Please help me. install.packages("swirl",dependencies = TRUE) trying URL...

R devtools::check LICENSE is not mentioned and other issues in DESCRIPTION FILE

Starting to create a package, I built a few functions and then ran devtools::check() to make sure I was on track. Below I copy the entire output of the devtools::check() command. There are two...

Rmarkdown with shiny elements - issue to render html locally

I am trying to produce a standalone html file using rmarkdown::render from Rmd with some shiny reactive elements (without shiny server). It is possible for me to knit the file and open the...

renv 0.12.0 was loaded from project library, but renv 0.11.0 is recorded in lockfile

Upon opening a project on rstudio i have the following Warning: Warning message: renv 0.12.0 was loaded from project library, but renv 0.11.0 is recorded in lockfile. Use...

information on .o files for x64 is not available: NOTE on R package checks using Rcpp

I am using windows and just updated to R 4.0.3 (with RStudio to 1.3.959) and ran the R check for one of my packages which uses Rcpp and RcppArmadillo and I got the following NOTE: > checking...

RStudio Connect Failure to Retrieve Package when Deploying Shiny App

I am trying to deploy a Shiny app on RStudio Connect. The deployment progresses until it tries to install the package, 'mvtnorm' from CRAN, at which point I get a 404 error, and the deployment...

Dependency problem when upgrading Ubuntu from 18.04 to 20.04

I wanted to update r, but when trying to update it sudo apt install r-base Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not...

R: renv::restore() throwing strange error messages ("character(0)")

I'm trying to get renv to run, in order to restore the libraries of a project on a different system. Here's my workflow: [On MacOS, R 3.6.3]: Created an RStudio project with 2 script files that...

Python script works in vscode but not rstudio

We have some python code that takes an excel file as input and processes it into a json file for some javascript to visualize. To complicate this further, the javascript (and a bunch of other...