Publications by R on datawookie

Relationship between Race Distance and Gender Ratio

09.04.2017

In an article entitled “Could women outrun men in ultramarathon races?”, Jenefer Bam and her collaborators explored the hypothesis that running performance of men and women converge with increasing race distance, and suggested that women have superior fatigue resistance. It’d be great to independently validate these results using data from...

3858 sym 14 img

RSelenium and Java Heap Space

08.06.2017

I’m in the process of deploying a scraper on a DigitalOcean instance. The scraper uses RSelenium with the PhantomJS browser. I ran into a problem though. Although it worked flawlessly on my local machine, on the remote instance it broke with the following error: Selenium message:Java heap space Error: Summary: UnknownError Detail: An unkn...

976 sym R (272 sym/2 pcs)

Deploying a Minimal API using plumber on DigitalOcean

21.06.2017

Some quick notes on deploying an API (generated with plumber) on DigitalOcean. Development Setup On your local machine install a couple of packages from GitHub. > devtools::install_github("trestletech/plumber") > devtools::install_github("sckott/analogsea") In RStudio open a new script and create a single, simple API endpoint which will return to...

2783 sym R (836 sym/6 pcs) 8 img

RStudio Environment on DigitalOcean with Docker

10.07.2017

I’ll be running a training course in a few weeks which will use RStudio as the main computational tool. Since it’s a short course I don’t want to spend a lot of time sorting out technical issues. And with multiple operating systems (and versions) these issues can be numerous and pervasive. Setting up a RStudio server which everyone can acce...

6046 sym Python (4306 sym/19 pcs) 8 img

Favourite Talks from useR 2017

22.07.2017

Geospatial RQGIS: Integrating R with QGIS for Innovative Geocomputing (Jannes Muenchow) Exploring and presenting maps with tmap (Martijn Tennekes) Maps are data, so why plot data on a map? (Mark Padgham) Geospatial Visualization using R (Bhaskar V. Karambelkar) Spatial Data in R: New Directions (Edzer Pebesma) mapedit – interactive manipul...

1994 sym

A Timeline History of R

04.08.2017

A record of some more or less important events in the history of R. This is a work in progress. The information is cobbled together from a range of sources. If you have pertinent items to add, please let me know via the comments. 2020: useR! (Boston, MA, USA) 2019: useR! (Toulouse, France) 2018: RStudio-1.1.453 (2018-05-16) R-3.5.0 “Joy i...

5116 sym

Route Asymmetry in Google Maps

22.08.2017

I have been retrieving some route information using Rodrigo Azuero’s gmapsdistance package and noted that there was some asymmetry in the results: the time and distance for the trip from A to B was not necessarily always the same as the time and distance for the trip from B to A. Although in retrospect this seems self-evident, it merited furthe...

2590 sym R (480 sym/4 pcs) 4 img 1 tbl

Global Variables in R Packages

07.09.2017

I know that global variables are from the Devil, but sometimes you just can’t get around them. I’m building a small package for a client that relies on a data file. For various reasons that file is not part of the package and can reside in different locations on users’ machines. Furthermore there are users on both Windows and Linux machines...

1321 sym R (315 sym/3 pcs)

Building a Local OSRM Instance

11.09.2017

The Open Source Routing Machine (OSRM) is a library for calculating routes, distances and travel times between spatial locations. It can be accessed via either an HTTP or C++ API. Since it’s open source you can also install locally, download appropriate map data and start making efficient travel calculations. These are the instructions for gett...

4310 sym R (2877 sym/19 pcs) 4 img

Hosting a Plumber API on AWS

13.09.2017

I’ve been putting together a small proof-of-concept API using R and plumber. It works flawlessly on my local machine and I was planning on deploying it on an EC2 instance to demo it for a client. However, I ran into a snag: despite opening the required port in my Security Group I was not able to access the API. This is what I needed to do to ge...

2151 sym R (795 sym/6 pcs) 4 img