Sometimes I just need to show how R is good without scaring too much people, typing commands on the command line.

That’s why I installed JGR. Unfortunately, there’s no binary package for it in my distribution, so I used the classic install.packages().

JGR has a bug though, and as far as I know it hasn’t been fixed. However, I quickly found a workaround.

Just open the startup script with your favourite text editor:

sudo vi /usr/local/lib/R/site-library/JGR/cont/run

and add the following line at the beginning:

cat ~/.JGRprefsrc | sed ‘s/, /,/g’ > ~/.JGRprefsrc

It’s just a bit of regexp magic, and it does the trick nicely.

[@more@]


Commenti

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.