Skip to content

Instantly share code, notes, and snippets.

Paul Murrell pmur002

Block or report user

Report or block pmur002

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
pmur002 / gist:c250e177c0da896f10970f6c66763e4a
Created Oct 29, 2018
Lines between maps on multiple-map layout
View gist:c250e177c0da896f10970f6c66763e4a
## Main code based on
## Requires up to date gdal
## (e.g., from
pmur002 / ensurePkg.xml
Last active Aug 29, 2015
Define a module wrapper for ensurePkg.R gist
View ensurePkg.xml
<?xml version="1.0"?>
<module xmlns="">
<platform name="R"/>
<output name="ensurePkg" type="internal"/>
<output name="ensurePkgGitHub" type="internal"/>
<source ref=""><![CDATA[]]></source>
pmur002 / ensurePkg.R
Last active Aug 29, 2015
Define a function that installs an R package if it is not available
View ensurePkg.R
ensurePkg <- function(x, lib.loc=NULL) {
if (is.null(lib.loc)) {
home <- Sys.getenv("HOME")
if (nchar(home)) {
lib.loc <- file.path(home, ".OA.Rlibs")
} else {
lib.loc <- "./.OA.Rlibs"
if (!file.exists(lib.loc))
You can’t perform that action at this time.