Developing Geographic Thematic Maps with R

There are clearly a number of packages in R for all sorts of spatial analysis. That can by seen in the CRAN Task View: Analysis of Spatial Data. These packages are numerous and diverse, but all I...

creating road network datasets in R

I have a line shapefile containing roads, and I'd like to use it to create a network dataset. In ArcGIS, I'd do this with the Network Analyst extension (see here). Is there an R package with the...

Avoiding using global objects when building an R package with multiple separate functions

I have built an R package that runs a complex Bayesian model (Dirichlet Process Mixture model on spatial data) including an MCMC, thinning and validation and interface with Googlemaps. I'm very...

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...

How to resolve warning messages (metadata object not found; SpatialLinesNULL class not exported) in my R package which extends S4 classes

This is my first question post on StackOverflow, so please correct any protocol errors I make. But I have already benefitted greatly from answers to many other questions on the site, so before I...

How do I split/divide polyline shapefiles into equally-length-smaller segments?

I have a polyline shapefile, which represents part of an urban road network. My shapefile contains several line/street segments (in my case 58). By using R-cran, I would like to further divide...

R Biogeo pkg: Error in as.double(y) : cannot coerce type 'S4' to vector of type 'double'

I am usually pretty good at figuring out error messages as long as it doesn't require much looking at the underlying code, but I am very new to working with spatial data, and can't figure this one...

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...

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 %>% ...

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. >...

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 - 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...

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...

"minfi" package install not successful for R 3.6 on Ubuntu 20.04

I am using R 3.6 on Linux (this is the most recent R version for Linux) and I need to perform methylation analysis on Infinium HumanMethylation450k data and for that I need the "minfi" R...

How to install "h3" library for H3 geospatial indexing system in R

My understanding is that the "H3 geospatial indexing system" is a kind of "coordinate system" developed by Uber, whose main feature is that it is based on a system of hierarchical hexagons. "he"...

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...