Skip to content

Do you keep an archive of "useful" R code? and if so - how?

9 messages · Tal Galili, Barry Rowlingson, Marc Schwartz +3 more

#
On Nov 22, 2009, at 10:53 AM, Tal Galili wrote:

            
One word:  Subversion (http://subversion.tigris.org/)

A version control system is a critical part of any code management  
process.

If you or other users may not be comfortable at the command line using  
it, there are a plethora of GUI based clients for Subversion available  
depending upon the operating systems you are using.

HTH,

Marc Schwartz
#
On Sun, Nov 22, 2009 at 5:45 PM, Tal Galili <tal.galili at gmail.com> wrote:
I just use plain text files for keeping notes - generally each project
directory I work on has a 'notes.txt' file which is a working log of
what I'm doing. If I think 'how did I do that the other day?' I can
search my text files.

 Recently I've been experimenting with using 'personal' or 'desktop'
wiki systems for this. Like Wikipedia but just for you, and stored as
files on your PC, and edited with a local client program instead of
over the web (although some personal wikis work over the web). I've
found 'zim' to be pretty good for this. It organises notes, lets you
link pages, timestamps things, has various plugins and MOST
importantly it's Open Source so you won't ever have your notes locked
up in a proprietary format that you need to keep paying a license fee
for.

 Not sure if there's a Windows port of it, but I'm certain similar
systems exist for Windows.

 Another idea is to have a public blog for R tips and tricks. That way
not only do you get free storage (from blogspot.com or some other blog
provider) but also it's searchable and other people can find it and
comment and improve on it.

 Or you could contribute to the R-wiki:

http://wiki.r-project.org/rwiki/doku.php?id=tips:tips

Barry
#
If you consider investing time to learn a version control system, I
would recommend looking into a distributed one. - Personally I use
git. http://git-scm.com/ is a good start, http://www.github.com can be
used to store code 'in the cloud'.

Cheers,
Hans-Peter
#
Hello,

I do keep a blog with R and non R related "snippets" of code.

Besides that, something like Alfresco, Plone or other document 
management systems could be useful. Maybe the solution is too complex 
for a single user, but you can keep tags and other kind of metadata 
attached to your code and you would have an integrated search engine.

Best regards,

Carlos J. Gil Bellosta
http://www.datanalytics.com
Tal Galili wrote:
#
I 've used tiddlywiki a personal notebook for other things but not for  
R. It may be useful to write a css that separates out code from  
description.

http://www.tiddlywiki.com/
On 22 Nov 2009, at 11:53AM, Tal Galili wrote: