« first day (590 days earlier)      last day (2585 days later) » 

12:25 AM
possibly of interest for this crowd:
1
Q: Good workflow for updating R modules around R-cran updates?

MittenchopsI like that R updates frequently to give me the best new packages, but it does seem to pose a problem for my R scripts on cron schedules. I noticed that every time ubuntu updater updates my r-base package, when I try to run my scripts, it'll say something like "there is no library(XML)". Then...

 
 
9 hours later…
9:21 AM
@gsk3 why can't you just call update.packages()?
 
 
3 hours later…
12:14 PM
@JoshuaUlrich I may be misunderstanding what update.packages() does, but that user wanted to have a list of packages not currently installed (e.g. from the last version of R before Ubuntu wiped it when it upgraded it) that get installed
 
@gsk3 Ah, I guess updating R r-base-core via the Update Manager wipes out any packages you may have installed in /usr/lib/R/library/? If that's the case, the answer is to install the packages somewhere else (via your .Rprofile). Then you can just call update.packages() (no args).
At least, that's what I do.
 
it does indeed
and that's a clever solution
although I think in previous installs I've had to install to home dir and it seems to wipe those out as well
although maybe installing to home dir combined with update.packages() would do it
 
I'm not talking about the "user library" that's created for you by default...
Let me look at my setup...
 
ah
specify your own
 
My .Rprofile has:
local({
  .libPaths("/home/josh/R/library")
})
So everything I install goes there.
 
12:21 PM
ah
and therefore it doesn't get wiped
I had been lulled into apathy by the fact that my libraries already get installed to my home directory (just checked)
but I guess if you specify than it tricks the evil Ubuntu masters
 
They're hardly being evil... packages installed under one version of R may not work under other versions. It's smart for them to install packages in different places for different versions.
I have to be more careful and ensure that the packages I have installed will all work correctly under newer versions of R.
 
quite right
but what is life without a little kvetching?
 
bliss
 
that depends whether you're the kvetcher or the kvetchee
 
12:26 PM
I seem to often be the latter... :)
 
if the ratio is off, there's a simple solution
just be the former more
 
Very true! Thanks for the advice!
 
whether that works or not depends whether utility is increasing in the ratio or decreasing in the denominator
@JoshuaUlrich I see my lessons have not yet been learned. Let me edit that for you: "Very true! But now you have doomed me to a life of woe and horror. Why did you help me in this way? Wouldn't things have been better if you'd left me alone?"
:-D
@RomanLuštrik How's school life going?
 
@gsk3 I have much to learn. Thank you for your tutelage.
 
do you get the summer off of classes to do research?
@JoshuaUlrich In time you will understand, my young apprentice.
 
12:32 PM
@gsk3 thanks for asking. I'm actually preparing for a lecture. We'll be doing Discriminant analysis and Structural equation modeling today. I'll get the chance to crack open Mplus along with a few packages for SEM in R. The lectures are slowly waning down but homework and assignments are there to stay for a little while.
How's the progeny doing, btw?
 
currently swaddled and blissfully asleep
he's in a two week moratorium on pacifiers post-frenectomy
 
awwwww!
 
and the batteries that run his electric vibraty chair have run out (new ones arriving tomorrow, hopefully)
so any sleep is good sleep
but thanks for asking
he's a cutie
 
Glad to hear that he's doing fine. Based on what you've just told us, he's probably keeping you two pretty busy? :)
 
user image
3
yeah we've been busy
and I have prelims in a month
but I often find that the periods of life where I am the most busy I am the most happy
I'm not sure what that says about me, but it's probably not good!
 
12:39 PM
@gsk3 I've found that, out of necessity, I've become far more efficient at doing lots of stuff since our son was born.
 
@joran I'm still getting there, but I can see how it might happen :-)
we've put a lot of investment over the past few months into making the house and our daily life as automatic and organized as possible
it has involved many trips to Ikea
 
Well, we may have been starting at different efficiency baselines. :)
 
you mean you were already on the flat-of-the-curve and I was at zero? that sounds about right!
 
If joran got another baby, he'd be answering SO question before they're posted.
 
two gold stars for a picture? that's more than any of my bad jokes ever gets
here have another then :-)
@RomanLuštrik careful with that linear extrapolation :-D
 
12:46 PM
@RomanLuštrik Considering that the only reason I'm up now answering questions is that I got up at 3:30am to put my kiddo back to sleep, you might be on to something.
 
@joran they sleep?
 
@gsk3 If you had asked me that 2 months ago I would have said no, but apparently things do improve over time.
 
Dan Savage was right then, "It gets better"
 
1:50 PM
Do we know anyone from Moscow, ID?
 
2:08 PM
@RomanLuštrik Trying to find someone at the University of Idaho?
 
Looking at those baby pictures, this is becoming the 'aaaah' channel instead of the 'R' channel :)
I might start pronouncing "R" as "Ruh" rather than "Arrr"...
 
3:12 PM
joran, a colleague of mine is going there (don't know what institution) for 6 months and she's looking for a place to stay. She's doing bear genetics.
 
3:35 PM
is there a way in R to get the month names? short of pasting 1 to 12 into a string, converting to a date, then formatting back with %b?
basicalyl i want to convert a string like "2011-09" to "Sep 2011"
ALthough I really need "Sep.2011" because so many formula things break if you have spaces in the names
current solution is... ugly...
 
@Spacedman format(zoo::as.yearmon("2011-09"),"%b.%Y")
 
hmmm was hoping not to introduce another library to the action...
 
@Spacedman format(as.Date("2011-09-01"), "%b.%Y")
Also works for POSIXt
 
@BrianDiggs yeah, my solution involves pasting -01 and doing exactly that...
format(as.Date(sprintf("%s-01",months)),"%b %Y")
paste is old and busted
 
@Spacedman That's the only way I can think to do it using only base packages.
 
3:40 PM
There is also month.abb
 
YES!
I knew that was somewhere.
 
@BrianDiggs I knew that existed... couldn't remember what it was called though. Well done.
 
You'd have to pull out the month part of the string, turn it into a number, and index into month.abb. Don't know if that is less kludgy.
 
i think its more kludgy actually...
hmm i'll go with format with sprintf
 
@JoshuaUlrich I couldn't remember what it was called either. But I guessed that it might be documented in the same place as LETTERS, and I was right :)
 
3:42 PM
I'm using knitr to make HTML that has an embedded HTML animation in it...
I want to hug Yihui Xie
for the knitr and animation packages
 
I'm experimenting with knitr; using it for one of my projects in lieu of Sweave. So far I am liking it, but getting used to the slightly different ways of doing things. Missing integration with Emacs-ESS, though.
Oh, and the examples of putting an animation in a PDF. O M G.
 
I'd love to show you guys this but its for the UseR conference workshop, so you'll have to wait!
But I'll make all my materials open and CC-SA-ND or something afterwards
 
Cool. My mentor works with animations as well. He's preparing an "animator" package. I think he gave a lightening talk last your at the useR conference.
 
I started doing this with Sweave, then switched to knitr->pdf, then though 'oh my I can do such cool stuff if I do knitr->html'
eg images as thumbnails with popup full-size pics
mathjax for equations... animation... etc
 
Oooh. Although mathjax for equations is not impressively greater than LaTeX for equations.
The thumbnails/pop-ups is cool, though.
 
4:00 PM
also hyperlinks from every function in the listings to the RGM page
 
 
2 hours later…
5:49 PM
@BrianDiggs I think lubridate can pull out the month easily
 
lubridate always struck me as a slightly R-rated package name, for some reason.
The word just feels kind of dirty when I say it.
 
Been there, done that.
You can search this chat room history for "lubridate", plenty of discussion on that topic. :)
 
@joran it's definitely R-related
 
@RomanLuštrik I guess those that don't adequately search the chat room transcripts are doomed to repeat them.
 
this also reminds me of the starred discussion from a few days ago...
"It's interesting how Hadley is steadily becoming the answer to everything,"
 
6:01 PM
yeah i did also think of lubridate but am trying to avoid bringing in more packages unless they really do something worth their while.
For example, I wanted to cast a matrix, and the alternative to using reshape2:cast is... just horrible...
but a quick sprintf/format is better than making lubridate or zoo a requirement for my workshop.
okay, cycling home now.
 
 
4 hours later…
10:32 PM
apropos, if anyone is a big AMT user, I threw a convenience function cleanTurked() into the 1.0.3 update of taRifx (should be available any hour now). comments/criticism/hate mail always welcome.
 
@gsk3 Why did you do that?!? You ruined my life!!!
 
@JoshuaUlrich My life's work is now complete. Before, you were just the apprentice. Now you are the master!
 

« first day (590 days earlier)      last day (2585 days later) »