Skip to content

Instantly share code, notes, and snippets.

@fmichonneau
fmichonneau / zissouRodent.R
Created May 12, 2014 17:35
Code to reproduce the mean weight per species using the Zissou color palette (from #datacarpentry tweet)
## Code to reproduce: https://twitter.com/FrancoisInvert/status/464493646151446528
library(wesanderson) # for the Zissou palette
library(RCurl) # needed to get data with HTTPS protocol
rodentURL <- getURL("https://raw.githubusercontent.com/NESCent/2014-05-08-datacarpentry/master/data/surveys.csv")
rodentData <- read.csv(textConnection(rodentURL))
meanPerSpecies <- aggregate(wgt ~ species, data=rodentData, mean, na.rm=TRUE)
@fmichonneau
fmichonneau / install.log
Last active August 29, 2015 13:57
Error during package installation using
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/home/francois/phylobase.Rcheck/phylobase/libs/phylobase.so':
/home/francois/phylobase.Rcheck/phylobase/libs/phylobase.so: undefined symbol: __ubsan_vptr_type_cache
Error: loading failed
Execution halted
ERROR: loading failed
_____
@fmichonneau
fmichonneau / gist:9463307
Last active August 29, 2015 13:57
Code that fails only for sparc on CRAN
## code to reproduce error as seen at: http://www.r-project.org/nosvn/R.check/r-patched-solaris-sparc/phylobase-00check.html
## 2014-03-10
library(phylobase)
library(RUnit)
## create object from scratch
ancestor <- as.integer(c(6,7,7,6,8,0,8,9,9))
descendant <- as.integer(c(7,1,2,8,3,6,9,4,5))
edge <- cbind(ancestor, descendant)