rakeR v0.2.0 on CRAN

         ·      · · ·

I am absolutely delighted to announce that the latest version of rakeR, version 0.2.0, is on CRAN. You can install it in R or RStudio with: install.packages("rakeR") DOI rakeR now has a DOI. This is probably more useful for me than it is for you but nevertheless, if you use rakeR please be sure to cite it and use the DOI: https://doi.org/10.5281/zenodo.821506 Changes and improvements Speed improvements in integerise() The most noticeable change is that the integerise() step, which previously took hours on a reasonable–sized data set, now takes minutes.


Pandoc error parsing BibTeX file

              · ·

I get this error so often (and I always forget how to solve it) that I thought I’d post a solution. Here’s the error: pandoc-citeproc: "stdin" (line 2421, column 2): unexpected "m" expecting "c", "C", "p", "P", "s" or "S" pandoc: Error running filter /usr/lib/rstudio/bin/pandoc/pandoc-citeproc Filter returned error status 1 Error: pandoc document conversion failed with error 83 The problem is that there’s an entry in my bibliography BibTeX file without a trailing comma:


Geocoding with Google Maps API

     

You need to build a URL to query the Google Places API, one URL per place. Judging by the Places API guide you need to: Get an API key Obtain a placeid from a places search, then Use this placeid to get information from the Place Details API. The base URL is: https://maps.googleapis.com/maps/api/place/nearbysearch/output?parameters JSON is the recommended output format, and we need to specify the following parameters:


Please, don't vote Tory

             

In case you missed it, there’s a general election in the UK on 8th June 2017. If you’re thinking of voting Tory/Conservative, please don’t. Hear me out. NHS If you care about the NHS, please know that it’s currently facing its biggest defecit in recent years. The scale of the defecit stood at £2.2billion in 2015⁄161. PDF: http://www.health.org.uk/sites/health/files/APerfectStorm.pdf [return]


Group figures for faster review

         ·      · · ·

I recently had to review figures from nearly 50 countries for a project I’m working on. Each country had three figures that needed comparing. Anyone who knows me will know that I had had enough after loading figures for just the first few countries. Apart from being tedious it was also error–prone; double–click the wrong file by mistake and it’s not immediately obvious you’ve got the wrong figure. Instead of doing it manually and risking making mistakes I wrote the following small python script using the pillow library.


Spatial packages and Travis

         · ·      · · ·

A number of R spatial libraries have been updated in the last couple of weeks, and this has played havoc with my Travis-CI build. I had still been using Ubuntu Trusty with Travis which uses old versions of libraries like rgdal and rgeos, so I needed to move to updated versions of these. In addition sf has now become a dependency for a number of spatial packages like tmap, and this uses libudunits2-dev which isn’t installed by default.