Skip to content

portable R editor

14 messages · Werner Wernersen, Wensui Liu, Jose Claudio Faria +8 more

#
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
#
I feel emacs is portable enough for me.
On 3/2/09, Werner Wernersen <pensterfuzzer at yahoo.de> wrote:

  
    
#
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:

  
    
#
Werner Wernersen <pensterfuzzer <at> yahoo.de> writes:
long time. Now I finally want to
tabs and syntax highlighting, can
pretty much like Tinn-R has
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
#
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.thompson at ontario.ca
http://ontario.ca/ofri
*************************************
#
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:

  
    
#
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
1 day later
#
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:

  
    
#
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:

  
    
1 day later
2 days later
#
Another possibility is buy an U3 smartdrive (U3). And then you can use de UltraEdit Portable.

It?s a good text editor with some level of support for R.

Atenciosamente,
Leandro Lins Marino
Centro de Avalia??o
Funda??o CESGRANRIO
Rua Santa Alexandrina, 1011 - 2? andar
Rio de Janeiro, RJ - CEP: 20261-903
R (21) 2103-9600 R.:236 
( (21) 8777-7907
( leandro at cesgranrio.org.br

"Aquele que suporta o peso da sociedade
    ? precisamente aquele que obt?m
 as menores vantagens". (SMITH, Adam)

?  Antes de imprimir pense em sua responsabilidade e compromisso com o MEIO AMBIENTE 

-----Mensagem original-----
De: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] Em nome de Federman, Douglas
Enviada em: sexta-feira, 6 de mar?o de 2009 16:29
Para: Werner W.; r-help at r-project.org
Assunto: 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-bounces at r-project.org on behalf of Werner W.
Sent: Wed 3/4/2009 6:39 AM
To: r-help at 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 at 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 at 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.
3 days later
#
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: