The outcome is a little color theme called rappster. The nice thing with those color themes is that you can make your syntax highlighting settings portable as you can simply import the theme of your choice in another instance of Eclipse, e.g. when updating to a newer version.
Yihui got me psyched a little about GitHub😉
Now I found some time to polish it a little. Feel free to test (there’s a little example script) and comment on it on GitHub!
Some further tweaking:
- Generic function: pathWindowsUpdate.R
- Method for class “list”: pathWindowsUpdate.R
- Example: pathWindowsUpdate.R
Note: you do need to other functions/methods in R
In order to connect my R related stuff to a webserver and MySQL I went all the way from using xampp to setting up my own (W)AMPP (Apache MySQL PHP Perl) to finally back to using xampp. And I’m quite happy about this very last switch to xampp!
Why I like xampp
- it’s open-source and actively maintained (thanks to the guys over at ApacheFriends.org!)
- it can be run as a portable app from an USB device
- it’s hassle free when you want to use an AMPP bundle but don’t like to spend your time configuring the whole thing
On my road to eventually running all of my programs off an USB device I’ve gotten a little bit closer yesterday thanks to input from Duncan Murdoch and Yihui Xie.
Eventually running the entire Windows OS off a USB drive would be nice (not talking about running it as a Virtual Machine, but to have a bootable Windows on USB), so: any hints appreciated😉
My current R devel infrastructure consists of
- R 2.14.0 (set up as portable)
- Eclipse 3.7 (set up as portable)
- StatET Plugin for Eclipse (integrates R into Eclipse)
- Rtools 2.14 (set up as portable)
- MikTeX 2.9 Portable (true portable)
- LyX 2.0.2 (set up as portable; make sure you grab the LyX-2.0.x.y-Installer-Bundle.exe as it contains Ghostview and other important stuff)
I’ve long searched for a somewhat efficient approach to indexing nested lists and/or environments and here’s my best solution so far.
For me, being able to compute such an index is the crucial part in order to actually manage such nested structures (which are very helpful in a lot of scenarios where formal classes are too inflexible). What you need to master are a) being able to select a specific branch in the nested list and b) being able to update it (e.g. adding new branches). A use case would be parsing a config file format to a nested list structure.
Timezone stuff can really drive you NUTS
– at least if you’re sitting in front of a German Windows-Box😉
This is what I used to do to set my tz:
And I always wondered why R would throw “unknown timezone” warnings:
> t <- "2011-11-08 09:42:00" > as.POSIXct(t, tz=getOption("tz"))  "2011-11-08 09:42:00 CET" Warning messages: 1: In strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) : unknown timezone 'MET-1MST' 2: In as.POSIXct.POSIXlt(x) : unknown timezone 'MET-1MST' 3: In strptime(x, f, tz = tz) : unknown timezone 'MET-1MST' 4: In as.POSIXct.POSIXlt(as.POSIXlt(x, tz, ...), tz, ...) : unknown timezone 'MET-1MST' 5: In as.POSIXlt.POSIXct(x, tz) : unknown timezone 'MET-1MST'
Someday I found out that setting tz via `options()` was not enough as the environment variable `TZ` is not affected and hence all the the trouble:
> Sys.getenv("TZ")  "MET-1MST"
Changing this should do away with the nasty warnings:
> Sys.setenv(TZ="Europe/Berlin") > Sys.getenv("TZ")  "Europe/Berlin" > as.POSIXct(t, tz=getOption("tz"))  "2011-11-08 09:42:00 CET"
Yesterday I launched my first question at Stackoverflow and apparently did a lot of things wrong as I managed to get my question closed wihtin hours😉
I had collected 9 different solutions to the problem and made the mistake to put it all within the original question space. So people complained and told me that such a collection belongs into a blog and not on Stackoverflow. Hence, I decided to go ahead and finally make my first blogging steps! I’ll probably still miss out on a lot of cool technical stuff on the blog, so please bear with me.
I decided to start blogging a bit to throw my weird R code examples at you ;-)
Hope you’ll like it!