Andy Reynolds in AmNat this month: Beating the Odds in the Aerial Lottery: Passive Dispersers Select Conditions at Takeoff That Maximize Their Expected Fitness on Landing
When I wrote my first for
loop ever (in R)
, it was a pretty exciting moment in my life. There was definitely some happy dancing. Some of my for
loops were really fast, but others that seemed pretty similar to my eyes took a really long time. I had a hard time figuring out why. If you are in the same boat, I recommend reading this section of Thomas Girke‘s Programming in R manual. It’s much faster than the “trial-and-error with occasional advice from other R users” approach I took.
I wanted to play around with the Floyd-Warshall algorithm today. Lucky for me, it’s included as part of the e1071 package. When I tried to install it – from the CRAN repository and from source – I got
ERROR: 'configure' exists but is not executable
The solution (from a recent post on Jonathan Callahan’s blog) is to “set the TMPDIR environment variable which R will use as the compilation directory.” For me, this meant
$ mkdir ~/tmp
$ export TMPDIR=~/tmp
[C]ertain genotypes are evolutionarily inaccessible under rapid environmental change. Rapidly deteriorating environments not only limit mutational opportunities by lowering population size, but they can also eliminate sets of mutations as evolutionary options.
From Lindsay et al. 2013