Re: [R] Installing R and an editor on a USB drive
On Wed, Nov 10, 2010 at 10:47 AM, Hannu Kahra wrote: > (setq inferior-R-program-name "G:/r-2.12.0/bin/i386/rterm.exe") > > since R is installed on the G drive. Everything works if R is on G, but when > changing the computer, R is usually on another drive and Emacs cannot find > it. Is it possible to handle this case? There's some discussion on the portable apps list about fixing up emacs and getting the drive letter: http://portableapps.com/node/12042 Using: (defvar usb-drive-letter (substring data-directory 0 3)) to get the drive letter from emacs' data-directory variable. You could then paste this onto the start of the path to R. I don't have a windows box with emacs on to muck with the relevant lisp at the moment, but I reckon something like: (defvar usb-drive-letter (substring data-directory 0 3)) (setq inferior-R-program-name (concat usb-drive-letter "r-2.12.0/bin/i386/rterm.exe")) might work. I think the substring gets the whole "X:/" part of the string. Barry __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Installing R and an editor on a USB drive
As I recall (my memory may be faulty), Tinn-R installation required admin privileges, but running does not and the installation does not include the specific file path in any files. To make Tinn-R available on a machine where I do not have admin privileges I have a) installed onto a machine where I do have privileges b) copied the entire Tinn-R folder to the target. I guess that could be a USB stick HTH Keith J "PAC2" wrote in message news:1289393991376-3036030.p...@n4.nabble.com... > > Tinn R does not require administrator privileges. I've installed it on my > USB > stick and it works fine. > -- > View this message in context: > http://r.789695.n4.nabble.com/Installing-R-and-an-editor-on-a-USB-drive-tp3035839p3036030.html > Sent from the R help mailing list archive at Nabble.com. > __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Installing R and an editor on a USB drive
Tinn R does not require administrator privileges. I've installed it on my USB stick and it works fine. -- View this message in context: http://r.789695.n4.nabble.com/Installing-R-and-an-editor-on-a-USB-drive-tp3035839p3036030.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Installing R and an editor on a USB drive
Hey, I don't know whether this helps, but an editor for Windows with code highlighting for any programming language (including R) that can be installed on a pen drive (USB stick) is Notepad++ (http://notepad-plus-plus.org/) and with the NppToR application (http://npptor.sourceforge.net/) that runs in the background, scripts and commands can be sent to R with a configurable keystroke just like with the R editor. I don't really know, though, if NppToR also can be run from the pen drive. I personally like Notepad++ more than TinnR, mostly because it is smaller. It does not, however, provide such a rich development environment like TinnR. Give it a try and see whether it fits your requirements. Cheers, Markus - B.-Markus Schuller aka Mango Sensory Ecology Group Max-Planck-Institute for Ornithology 82319 Seewiesen, Germany phone: +49 (0)8157 932 -378 fax: +49 (0)8157 932 -344 email: schul...@orn.mpg.de http://www.orn.mpg.de/nwg/abtsiemers.html - Never run for the bus. Never skip tea. On 10.11.2010 11:47, Hannu Kahra wrote: Hi, I have adviced my students to install R and an editor on a USB drive for working in the computer class. With R everything works fine following these instructions: http://personal.bgsu.edu/~mrizzo/Rmisc/usbR.htm. But several editors (e.g., Tinn-R and WinEdt) require administrator rights. I have found out that Emacs (Vincent Goulet's Emacs for Windows Modified http://vgoulet.act.ulaval.ca/en/ressources/emacs/windows) can be installed without administrator rights. There is, however, one problem. I have edited the site-start.el file and adjusted the path variable: (setq inferior-R-program-name "G:/r-2.12.0/bin/i386/rterm.exe") since R is installed on the G drive. Everything works if R is on G, but when changing the computer, R is usually on another drive and Emacs cannot find it. Is it possible to handle this case? XEmacs for Windows requires that the init.el file is in the .xemacs subdirectory of the "home" directory that is on the hard drive. Is it possible to have the init.el file on the USB drive? Thank you! Hannu [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] Installing R and an editor on a USB drive
> Date: Wed, 10 Nov 2010 12:47:10 +0200 > From: hka...@gmail.com > To: R-help@r-project.org > Subject: [R] Installing R and an editor on a USB drive > > Hi, > > I have adviced my students to install R and an editor on a USB drive for > working in the computer class. With R everything works fine following these > instructions: http://personal.bgsu.edu/~mrizzo/Rmisc/usbR.htm. > > But several editors (e.g., Tinn-R and WinEdt) require administrator rights. > http://vgoulet.act.ulaval.ca/en/ressources/emacs/windows) can be installed > without administrator rights. There is, however, one problem. I have edited > the site-start.el file and adjusted the path variable: > > (setq inferior-R-program-name "G:/r-2.12.0/bin/i386/rterm.exe") > If you really need hard absolute paths, I guess you could have it look for R in a start up script. Presumably removable or plug-n-play media won't be too consistent and it isn't hard to scan a few drive letters. For example, I just wrote this on cygwin ( hotmail and R spam filter have been redacting my mail, there should be a one line script here LOL ) $ for f in `mount | cut -c 1 | sort | uniq `; do echo `cygpath $f:` ; done /cygdrive/c /cygdrive/d /cygdrive/f The above lists all my drives, f is a flash stick. and you could find one with R and write that to the start file. > since R is installed on the G drive. Everything works if R is on G, but when > changing the computer, R is usually on another drive and Emacs cannot find > it. Is it possible to handle this case? > > subdirectory of the "home" directory that is on the hard drive. Is it > possible to have the init.el file on the USB drive? > > Thank you! > > Hannu oducible code. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.