An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20091122/430e3297/attachment-0001.pl>
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:
Hello all, When using R for some time, one comes across more and more useful functions. But naturally we can't remember all of them, so I imagine some of you save these snippets of code. My question to you is how do you manage that code? Do you use special software, or archiving system? Any advice is welcomed. Tal
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
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20091122/6f582aa6/attachment-0001.pl>
On Sun, Nov 22, 2009 at 5:45 PM, Tal Galili <tal.galili at gmail.com> wrote:
Hello Marc and Jeff, Thank you for replying. I am using winXP, and any recommendation for GUI based system will be welcomed. However, my initial question was not how to maintain code that I write and develop, but rather how to keep a "filing system" for other peoples code that I find useful. Here are some simple examples: ? - A code to allow me to start a window with "history" recording turned ? on. ? - A code to have wider margins so to allow more space for the plot ? labels. ? - A code for creating an ellipse plot of a matrix of correlations. All of these example are things I wouldn't put into a Subversion system or a new package.
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
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20091122/9335cfb9/attachment-0001.pl>
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20091122/a29ff96d/attachment-0001.pl>
Marc - I thank you for the links and ideas. Thanks to your advice I will look more into SVN in the future, although it sounds on the surface to require some learning curve, so It could take me some time to start using it.
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:
Hello all, When using R for some time, one comes across more and more useful functions. But naturally we can't remember all of them, so I imagine some of you save these snippets of code. My question to you is how do you manage that code? Do you use special software, or archiving system? Any advice is welcomed. Tal ----------------Contact Details:------------------------------------------------------- Contact me: Tal.Galili at gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com/ (English) ---------------------------------------------------------------------------------------------- [[alternative HTML version deleted]]
______________________________________________ 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.
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:
Hello all, When using R for some time, one comes across more and more useful functions. But naturally we can't remember all of them, so I imagine some of you save these snippets of code. My question to you is how do you manage that code? Do you use special software, or archiving system? Any advice is welcomed. Tal ----------------Contact Details:------------------------------------------------------- Contact me: Tal.Galili at gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com/ (English) ---------------------------------------------------------------------------------------------- [[alternative HTML version deleted]]
______________________________________________ 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.