[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ess-help
Subject:    Re: [ESS] Fwd: How does one start R within Emacs/ESS with root
From:       Karl Brand <k.brand () erasmusmc ! nl>
Date:       2011-09-09 16:12:55
Message-ID: 4E6A3B07.6080603 () erasmusmc ! nl
[Download RAW message or body]

Paul^2, Steven, Brendan, Patrick,

Thank you for sharing your experience, suggestions and guidance. So now 
the default set-up on my ubu box (the same as detailed by Paul) with 2+ 
libraries *does* make sense.

I see now the advantages to minimally run R as root as long as i'm the 
only user of the machine. Which itself (avoiding root privs) is 
preferable for the reasons you well highlighted.

@Steven,
I will need to look more closely at the configuration you outline and 
how it differs (if at all) from my current, default set up.

@Brendan
It's also good to know how to run R as root from ESS if i should ever 
want to.

@Patrick
Actually, touchtpying is still some thing i want to learn...

I look forward to your further patience helping me quickly become 
productive with ESS.

Karl




On 2011-09-07 18:35, Paul Johnson wrote:
> On 09/07/2011 09:27 AM, Karl Brand wrote:
> > Thanks a lot Paul.
> > 
> > Your answer implies you either maintain a user library that doesn't
> > require root privileges&/or you don't use ESS to install/maintain
> > system wide packages.
> > 
> > Is it the former? Is this how most ESS/R user's work - from their own
> > separate user library?
> > 
> > I just want to minimise issues down the road (presently unknown
> > unknowns) by hearing opinions from the experienced .
> > 
> 
> I keep a pretty big set of packages in /usr/lib/R and /usr/local/lib/R, only root \
> can update them. 
> I have plenty in my personal user account, where I install things when I don't \
> think other users will need them. 
> Until you suggested it, I never thought of doing that in Emacs/ESS, I just open a \
> terminal and "sudo R" to do the system level updates.
> 
> In Debian linux, the system automatically installs into the user personal folder if \
> a user runs "install.packages". 
> pj
> 
> 
> 
> > cheers, Karl
> > 
> > 
> > On 2011-09-07 16:01, Paul Johnson wrote:
> > 
> > > 
> > > I've never tried to run R as root inside emacs.
> > > 
> > > But I just tested and this does work:
> > > 
> > > # sudo emacs whatever.R
> > > 
> > > after that, R is running as root
> > > 
> > > 
> > > pj
> > > 
> > > > tia,
> > > > 
> > > > Karl
> > > > 
> > > > -------- Original Message --------
> > > > Subject: How does one start R within Emacs/ESS with root privileges?
> > > > Date: Wed, 07 Sep 2011 14:19:36 +0200
> > > > From: Karl Brand<k.brand@erasmusmc.nl>
> > > > To: ESS-help@stat.math.ethz.ch
> > > > 
> > > > <Reposted from r-help@r-project.org>
> > > > 
> > > > Esteemed ESS Users&   Devs,
> > > > 
> > > > How does one start R within Emacs/ESS with root privileges?
> > > > 
> > > > I tried without success:
> > > > 
> > > > > M-x sudo R
> > > > 
> > > > Why i'm motivated to do so:
> > > > 
> > > > It seems logical to me, as the only user of the PC, to keep my R library
> > > > consolidated in the universal library rather than splitting into
> > > > universal and user libraries. Hence the desire to run R as root.
> > > > 
> > > > In addition, it's nice to be able to install packages 'on the fly' when
> > > > and as needed and not need to launch a separate R session (as root) in
> > > > the terminal just to install a package.
> > > > 
> > > > Migrating from windows, i'm completey new to linux (ubuntu) and am
> > > > seeing for myself if Emacs/ESS is as good as its purported to be. So
> > > > maybe my motivation is nonsensical to expereinced ESS/R users. If so i'd
> > > > really appreciate tips on efficient package installation/maintenance
> > > > using Emacs/ESS.
> > > > 
> > > > TIA,
> > > > 
> > > > karl
> > > > 
> > > 
> > 
> 

-- 
Karl Brand <k.brand@erasmusmc.nl>
Department of Genetics
Erasmus MC
Dr Molewaterplein 50
3015 GE Rotterdam
P +31 (0)10 704 3455 | F +31 (0)10 704 4743 | M +31 (0)642 777 268

______________________________________________
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic