From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Update-persistent R library repo Date: Thu, 12 Jul 2012 16:58:04 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SpROg-00014b-Et for emacs-orgmode@gnu.org; Thu, 12 Jul 2012 17:58:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SpROf-0007v0-Gz for emacs-orgmode@gnu.org; Thu, 12 Jul 2012 17:58:06 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:44106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SpROf-0007uv-8H for emacs-orgmode@gnu.org; Thu, 12 Jul 2012 17:58:05 -0400 Received: by bkcjc3 with SMTP id jc3so2536024bkc.0 for ; Thu, 12 Jul 2012 14:58:04 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode I recently inquired with someone at an R meetup group about how to make an update-persistant repo for my R libraries. He suggested creating a file ~/.Renviron with the contents: .--- | R_LIBS=C:/Users/a1rwhzz/Documents/R `--- I did this and it works great from the R program via my Windows start shortcut, but not from Emacs/ESS which is what Org-mode looks for. I thought I'd ask here as surely some of you have done this. I think the primary issue is that Emacs defines ~/ as C:/Users/uname/AppData/Roaming whereas the R program seems to define it as C:/Users/uname/Documents (which is also C:/Users/uname/My Documents). Suggestions? Also, since I created this file, my CRAN mirror GUI picker no longer pops up with install.packages(). I'm thinking there has to be a more robust way. Do you typically start R in the same directory each time when using ESS/Org-mode? Thanks for any suggestions, John