[ESS] Fwd: How does one start R within Emacs/ESS with root privileges?

Karl Brand k.brand at erasmusmc.nl
Wed Sep 7 16:27:23 CEST 2011


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 .

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 at erasmusmc.nl>
>> To: ESS-help at stat.math.ethz.ch
>>
>> <Reposted from r-help at 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 at 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



More information about the ESS-help mailing list