[R] portable R editor
Several messages last week debated about a portable R with Tinn-R. I made such an app just a few weeks ago. It's called R-TinnR-portables and is available here: http://otan.ecoledelapaix.org/spip.php?article102 Simply unzip the file downloadable under the name R-2.8.1TinnR-portables. You'll have R with a bunch of packages and Tinn-R. It runs from a USB drive and network drive (if the network drive is shared, you should disable tooltip in Tinn-T). What is original about this is that I wrote a full bash script (runs on GNU/Linux with wine) to create the zip archive for MS Windows. The advantage are: - you can customise your script. If you want to change something to your portable R, juste change the appropriate line, run your script and wait a little while. - you can build it on GNU/Linux (I tested the result on Windows 2000, XP and Vista).. Here are some small extracts of the script: # set up your mirror: mirroir=http://cran.cict.fr; # just change this when a new stable R version comes out: dernierR=R-2.8.1 # you may add or remove basic R/Rgui components here: wine $dernierR-win32.exe /DIR=''$pathWIN'' /$interface /COMPONENTS=main, html, html/help, manuals, manuals/basic, manuals/technical, manuals/refman, tcl, Rd, trans # you may add the packages you want here (instead of ...): install.packages(pkgs=c(abind, aplpack, Cairo, ...), repos='$mirroir', dependencies=c(Depends, Imports), destdir=c:/RTinnRPortables'$aujourdhui'/temp, clean=F) Some comments in the script are in French, just ask me if you are interested, I'll translate them. Regards, Mayeul -- Dr. Mayeul KAUFFMANN Head of Research department Programme manager, UNESCO Network Governance and peace Ecole de la paix (School of Peace) 7 rue Tres-Cloitres 38000 GRENOBLE FRANCE Phone: + 33 4 76 63 81 41 Fax : + 33 4 76 63 81 42 __ 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] portable R editor
Unfortunately, the suggested way with JauntePE does not work completely. Maybe I have found a better alternative now: There is a little free application by Sysinternals (now owned by MS) which can create junction points, i.e. a system link to a directory under Windows. It is available here: http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx In my setup, I have under the root directory of the USB stick one dir called Programs and one called Application Data. I have copied the Tinn-R folder to Programs and the ini files from the user profile into Application Data. In Programs\Tinn-R I have created a batch file startTinn-R.bat with this content: REM START junction %APPDATA%\Tinn-R %CD%\..\..\..\Application Data\Tinn-R @start .\bin\Tinn-R REM END and copied the junction.exe into this dir as well. When I double click this bat file, a link to the ini files on the USB stick is created in the user's application data directory in the local harddrive of the PC used. But note that this does not work if there exists a Tinn-R directory already in the user's application data dir in local harddrive. All the best, Werner Werner W. wrote: JauntePE is really easy to use. It does not take any particular skill. Just launch the main application, click on the Lauch JPE Quickie Button and it will guide you through the process. I left everything with the default settings. In brief, one starts the Tinn-R installer once from within JPE probably to check which folders, files, and registry entries are generated. Then, again from within JPE, one starts the now on the portable media installed Tinn-R application and finally the entire application can be packaged up which probably generates the starter and virtualization files within the Tinn-R folder. I realized that startup of Tinn-R is now slower and I haven't worked with that installation seriously yet but everything seems all right so far. Regards, Werner -- View this message in context: http://www.nabble.com/portable-R-editor-tp22291017p22484751.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] portable R editor
You might also look at http://www.portableapps.com for a portable version of several editors, including gVim, Notepad++ and SciTE which all have some level of support for R -- I like nonsense, it wakes up the brain cells. Fantasy is a necessary ingredient in living, it's a way of looking at life through the wrong end of a telescope. Which is what I do, and that enables you to laugh at life's realities. - Dr. Suess From: r-help-boun...@r-project.org on behalf of Werner W. Sent: Wed 3/4/2009 6:39 AM To: r-help@r-project.org Subject: Re: [R] portable R editor Many, many thanks for all the answers! Notepad++ looks very promising although it does not have a project file management facility. But it has a very clean appearance. I'll have to look into SciTE which also sounds quite good. There seem to be some good alternatives. Meanwhile, I found a freeware application which helps to make Tinn-R truly portable: JauntePE (http://www.portablefreeware.com/?id=1452) virtualizes access to the registry and file system and can easily be used to make also the ini settings portable. Thus, everything will be on the USB stick. Thanks again, Werner -- View this message in context: http://www.nabble.com/portable-R-editor-tp22291017p22328322.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. [[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.
Re: [R] portable R editor
Hi Werner, Could you to post here details about the Tinn-R truly portable with JauntePE? I think it will be also useful for all Tinn-R users, like me. ;-) Many thanks, JCFaria Werner W. wrote: Many, many thanks for all the answers! Notepad++ looks very promising although it does not have a project file management facility. But it has a very clean appearance. I'll have to look into SciTE which also sounds quite good. There seem to be some good alternatives. Meanwhile, I found a freeware application which helps to make Tinn-R truly portable: JauntePE (http://www.portablefreeware.com/?id=1452) virtualizes access to the registry and file system and can easily be used to make also the ini settings portable. Thus, everything will be on the USB stick. Thanks again, Werner -- View this message in context: http://www.nabble.com/portable-R-editor-tp22291017p22351901.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] portable R editor
JauntePE is really easy to use. It does not take any particular skill. Just launch the main application, click on the Lauch JPE Quickie Button and it will guide you through the process. I left everything with the default settings. In brief, one starts the Tinn-R installer once from within JPE probably to check which folders, files, and registry entries are generated. Then, again from within JPE, one starts the now on the portable media installed Tinn-R application and finally the entire application can be packaged up which probably generates the starter and virtualization files within the Tinn-R folder. I realized that startup of Tinn-R is now slower and I haven't worked with that installation seriously yet but everything seems all right so far. Regards, Werner jcfaria wrote: Could you to post here details about the Tinn-R truly portable with JauntePE? I think it will be also useful for all Tinn-R users, like me. ;-) Many thanks, JCFaria -- View this message in context: http://www.nabble.com/portable-R-editor-tp22291017p22352524.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] portable R editor
Many, many thanks for all the answers! Notepad++ looks very promising although it does not have a project file management facility. But it has a very clean appearance. I'll have to look into SciTE which also sounds quite good. There seem to be some good alternatives. Meanwhile, I found a freeware application which helps to make Tinn-R truly portable: JauntePE (http://www.portablefreeware.com/?id=1452) virtualizes access to the registry and file system and can easily be used to make also the ini settings portable. Thus, everything will be on the USB stick. Thanks again, Werner -- View this message in context: http://www.nabble.com/portable-R-editor-tp22291017p22328322.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] portable R editor
EditPad Pro is commercial, which makes it a nonchoice for recommending it to my students. I recently switched from tinn-R to Notepad++ with NppToR and am quite happy with it. tinn-R is quite good, but possibly the project is getting too ambitous now. It needs quite some fiddling with Rprofile.site to make it work. Thompson, David (MNR) wrote: Werner, Another alternative is EditPad Pro http://www.editpadpro.com/. DaveT. * Silviculture Data Analyst Ontario Forest Research Institute Ontario Ministry of Natural Resources david.john.thomp...@ontario.ca http://ontario.ca/ofri * -Original Message- From: Andrew Redd [mailto:ar...@stat.tamu.edu] Sent: March 2, 2009 10:29 PM To: Michael Bibo Cc: r-h...@stat.math.ethz.ch Subject: Re: [R] portable R editor Thanks for the plug on NppToR. Yes it is portable, but a few of the features don't work. I have it on my plan to have a launcher for the portable apps menu. Also the website for NppToR is now https://sourceforge.net/projects/npptor/ On my personal website I also keep, semi-up-to-date a portableapps.comcompatible launcher for R. http://www.stat.tamu.edu/~aredd/site/?q=node/2. There is a full installation and just the launcher. If you download just the launcher you can install the latest version of R into the bin directory and It will work. I think it is version 2.8.0 in the installer. I'll update that soon. Andrew Redd On Mon, Mar 2, 2009 at 8:13 PM, Michael Bibo michael_b...@health.qld.gov.au wrote: Werner Wernersen pensterfuzzer at yahoo.de writes: Hi, I have been dreaming about a complete R environment on my USB stick for a long time. Now I finally want to realize it but what I am missing is a good, portable editor for R which has tabs and syntax highlighting, can execute code, has bookmarks and a little project file management facility pretty much like Tinn-R has those. I like Tinn-R but it seems like there is only a very old version of Tinn-R which works standalone. Hi Werner, Three options: I have previously posted about using Emacs + ESS on a USB stick: http://finzi.psych.upenn.edu/R/Rhelp02/archive/107419.html Tinn-R will work portably. I have simply copied the installed Tinn-R folder from one machine to another on which I do not have administrator privileges and therefore cannot do a normal install. Another option is Notepad++ (http://notepad- plus.sourceforge.net/uk/site.htm). There is even a portable version available fom www.portableapps.com. Andrew Redd has created (and is continuing to develop) NppToR (http://www.stat.tamu.edu/~aredd/site/?q=node/37http://www.sta t.tamu.edu/%7Earedd/site/?q=node/37) which provides syntax highlighting, code folding and code passing to R. Notepad++ has a tabbed interface as well as add-ons including a file explorer, windows manager and multiclipboard manager. It also allows for the recording of macros, and the instructions found at this blog (http://aztecpassage.blogspot.com/2007/11/load-new-file-from-te mplate-in- notepad.htmlhttp://aztecpassage.blogspot.com/2007/11/load-new- file-from-template-in-%0Anotepad.html) use Notepad++'s built-in capacity to run external tools to create new files from templates. Michael Bibo Queensland Health __ 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. [[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. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.0.237 / Virus Database: 270.11.6/1980 - Release Date: 03/02/09 23:02:00 -- Erich Neuwirth, University of Vienna Faculty of Computer Science Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at Phone: +43-1-4277-39464 Fax: +43-1-4277-39459 __ 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] portable R editor
After (too much) research, I've settled on SciTE, which is an open source editor. I really wanted emacs to work, but the crazy keyboard shortcuts were killing me. For SciTE to work, it takes a little work. First open the global options file and change #import r to import r to enable R syntax highlighting. You can stop now if you like, or you can compile directly in SciTE. (Personally, I'm happy enough to copy and past in the code by hitting control-c, alt-tab, then control-v.) To compile in SciTE you have to open the r.Proerties file (available from the options menu), and add the following lines: if PLAT_WIN command.go.*.R=C:\Program Files\R\R-2.8.1\bin\Rscript.exe --no-save $(FileNameExt) command.go.*.R=C:\Program Files\R\R-2.8.1\bin\Rscript.exe --save --restore $(FileNameExt) command.go.subsystem.*.R=0 (You can remove the comment #s from the one line to disable automatic workspace saving) This method will compile inside SciTE, not the GUI you have open! It will output graphs to your working directory I've also done a heap of work trying to submit to the open GUI, ideally line by line. I found some code ( http://www.sciviews.org/_rgui/projects/TpR_1.0.2.zip) that I'm sure holds the answer, but I don't know how to use it. If someone figures it out please let me know. Substituting this line in SciTE r.Properties does something, but doesn't work: command.go.*.R=C:\TpR communicator\TpR.exe $(FileNameExt) On Tue, Mar 3, 2009 at 4:28 PM, Erich Neuwirth erich.neuwi...@univie.ac.atwrote: EditPad Pro is commercial, which makes it a nonchoice for recommending it to my students. I recently switched from tinn-R to Notepad++ with NppToR and am quite happy with it. tinn-R is quite good, but possibly the project is getting too ambitous now. It needs quite some fiddling with Rprofile.site to make it work. Thompson, David (MNR) wrote: Werner, Another alternative is EditPad Pro http://www.editpadpro.com/. DaveT. * Silviculture Data Analyst Ontario Forest Research Institute Ontario Ministry of Natural Resources david.john.thomp...@ontario.ca http://ontario.ca/ofri * -Original Message- From: Andrew Redd [mailto:ar...@stat.tamu.edu] Sent: March 2, 2009 10:29 PM To: Michael Bibo Cc: r-h...@stat.math.ethz.ch Subject: Re: [R] portable R editor Thanks for the plug on NppToR. Yes it is portable, but a few of the features don't work. I have it on my plan to have a launcher for the portable apps menu. Also the website for NppToR is now https://sourceforge.net/projects/npptor/ On my personal website I also keep, semi-up-to-date a portableapps.comcompatible launcher for R. http://www.stat.tamu.edu/~aredd/site/?q=node/2http://www.stat.tamu.edu/%7Earedd/site/?q=node/2. There is a full installation and just the launcher. If you download just the launcher you can install the latest version of R into the bin directory and It will work. I think it is version 2.8.0 in the installer. I'll update that soon. Andrew Redd On Mon, Mar 2, 2009 at 8:13 PM, Michael Bibo michael_b...@health.qld.gov.au wrote: Werner Wernersen pensterfuzzer at yahoo.de writes: Hi, I have been dreaming about a complete R environment on my USB stick for a long time. Now I finally want to realize it but what I am missing is a good, portable editor for R which has tabs and syntax highlighting, can execute code, has bookmarks and a little project file management facility pretty much like Tinn-R has those. I like Tinn-R but it seems like there is only a very old version of Tinn-R which works standalone. Hi Werner, Three options: I have previously posted about using Emacs + ESS on a USB stick: http://finzi.psych.upenn.edu/R/Rhelp02/archive/107419.html Tinn-R will work portably. I have simply copied the installed Tinn-R folder from one machine to another on which I do not have administrator privileges and therefore cannot do a normal install. Another option is Notepad++ (http://notepad- plus.sourceforge.net/uk/site.htm). There is even a portable version available fom www.portableapps.com. Andrew Redd has created (and is continuing to develop) NppToR (http://www.stat.tamu.edu/~aredd/site/?q=node/37http://www.stat.tamu.edu/%7Earedd/site/?q=node/37 http://www.sta t.tamu.edu/%7Earedd/site/?q=node/37) which provides syntax highlighting, code folding and code passing to R. Notepad++ has a tabbed interface as well as add-ons including a file explorer, windows manager and multiclipboard manager. It also allows for the recording of macros, and the instructions found at this blog (http://aztecpassage.blogspot.com/2007/11/load-new-file-from-te mplate-in- notepad.htmlhttp://aztecpassage.blogspot.com/2007/11/load-new- file-from-template-in-%0Anotepad.html) use Notepad++'s built
[R] portable R editor
Hi, I have been dreaming about a complete R environment on my USB stick for a long time. Now I finally want to realize it but what I am missing is a good, portable editor for R which has tabs and syntax highlighting, can execute code, has bookmarks and a little project file management facility pretty much like Tinn-R has those. I like Tinn-R but it seems like there is only a very old version of Tinn-R which works standalone. Can anyone recommend an adequate editor? Many thanks and all the best, Werner __ 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] portable R editor
I feel emacs is portable enough for me. On 3/2/09, Werner Wernersen pensterfuz...@yahoo.de wrote: Hi, I have been dreaming about a complete R environment on my USB stick for a long time. Now I finally want to realize it but what I am missing is a good, portable editor for R which has tabs and syntax highlighting, can execute code, has bookmarks and a little project file management facility pretty much like Tinn-R has those. I like Tinn-R but it seems like there is only a very old version of Tinn-R which works standalone. Can anyone recommend an adequate editor? Many thanks and all the best, Werner __ 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. -- === WenSui Liu Acquisition Risk, Chase Blog : statcompute.spaces.live.com I can calculate the motion of heavenly bodies, but not the madness of people.” -- Isaac Newton === __ 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] portable R editor
Hello Werner, Did you already try to use the new version of Tinn-R (2.2.0.2) and R in USB stick? I use it without problem! A good idea is to have a backup of your system configuration also in the USB stick. Unzip it (in any place) and replace the folder Tinn-R where Tinn-R stores all ini files in the computer used and all yours preferences will be preserved. HTH, JCFaria Werner Wernersen wrote: Hi, I have been dreaming about a complete R environment on my USB stick for a long time. Now I finally want to realize it but what I am missing is a good, portable editor for R which has tabs and syntax highlighting, can execute code, has bookmarks and a little project file management facility pretty much like Tinn-R has those. I like Tinn-R but it seems like there is only a very old version of Tinn-R which works standalone. Can anyone recommend an adequate editor? Many thanks and all the best, Werner __ 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. -- View this message in context: http://www.nabble.com/portable-R-editor-tp22291017p22297939.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] portable R editor
Werner Wernersen pensterfuzzer at yahoo.de writes: Hi, I have been dreaming about a complete R environment on my USB stick for a long time. Now I finally want to realize it but what I am missing is a good, portable editor for R which has tabs and syntax highlighting, can execute code, has bookmarks and a little project file management facility pretty much like Tinn-R has those. I like Tinn-R but it seems like there is only a very old version of Tinn-R which works standalone. Hi Werner, Three options: I have previously posted about using Emacs + ESS on a USB stick: http://finzi.psych.upenn.edu/R/Rhelp02/archive/107419.html Tinn-R will work portably. I have simply copied the installed Tinn-R folder from one machine to another on which I do not have administrator privileges and therefore cannot do a normal install. Another option is Notepad++ (http://notepad- plus.sourceforge.net/uk/site.htm). There is even a portable version available fom www.portableapps.com. Andrew Redd has created (and is continuing to develop) NppToR (http://www.stat.tamu.edu/~aredd/site/?q=node/37) which provides syntax highlighting, code folding and code passing to R. Notepad++ has a tabbed interface as well as add-ons including a file explorer, windows manager and multiclipboard manager. It also allows for the recording of macros, and the instructions found at this blog (http://aztecpassage.blogspot.com/2007/11/load-new-file-from-template-in- notepad.html) use Notepad++'s built-in capacity to run external tools to create new files from templates. Michael Bibo Queensland Health __ 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] portable R editor
Thanks for the plug on NppToR. Yes it is portable, but a few of the features don't work. I have it on my plan to have a launcher for the portable apps menu. Also the website for NppToR is now https://sourceforge.net/projects/npptor/ On my personal website I also keep, semi-up-to-date a portableapps.comcompatible launcher for R. http://www.stat.tamu.edu/~aredd/site/?q=node/2. There is a full installation and just the launcher. If you download just the launcher you can install the latest version of R into the bin directory and It will work. I think it is version 2.8.0 in the installer. I'll update that soon. Andrew Redd On Mon, Mar 2, 2009 at 8:13 PM, Michael Bibo michael_b...@health.qld.gov.au wrote: Werner Wernersen pensterfuzzer at yahoo.de writes: Hi, I have been dreaming about a complete R environment on my USB stick for a long time. Now I finally want to realize it but what I am missing is a good, portable editor for R which has tabs and syntax highlighting, can execute code, has bookmarks and a little project file management facility pretty much like Tinn-R has those. I like Tinn-R but it seems like there is only a very old version of Tinn-R which works standalone. Hi Werner, Three options: I have previously posted about using Emacs + ESS on a USB stick: http://finzi.psych.upenn.edu/R/Rhelp02/archive/107419.html Tinn-R will work portably. I have simply copied the installed Tinn-R folder from one machine to another on which I do not have administrator privileges and therefore cannot do a normal install. Another option is Notepad++ (http://notepad- plus.sourceforge.net/uk/site.htm). There is even a portable version available fom www.portableapps.com. Andrew Redd has created (and is continuing to develop) NppToR (http://www.stat.tamu.edu/~aredd/site/?q=node/37http://www.stat.tamu.edu/%7Earedd/site/?q=node/37) which provides syntax highlighting, code folding and code passing to R. Notepad++ has a tabbed interface as well as add-ons including a file explorer, windows manager and multiclipboard manager. It also allows for the recording of macros, and the instructions found at this blog (http://aztecpassage.blogspot.com/2007/11/load-new-file-from-template-in- notepad.htmlhttp://aztecpassage.blogspot.com/2007/11/load-new-file-from-template-in-%0Anotepad.html) use Notepad++'s built-in capacity to run external tools to create new files from templates. Michael Bibo Queensland Health __ 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. [[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.