Tal Galili
2010-Oct-22 09:16 UTC
[R] Dragging an .RData file into R on win-7 doesn't work?
Hi all, I sometimes drag an .RData file into an open R console so to load that data into the file. I use windows 7, and it works fine. But, if I open R by using: <right click on icon> -> properties -> compatibility -> (mark the box) "run this program as an administrator" Then I can no longer drag the .RData into the R console. (also, the nppToR extension for notepadd++ stops sending the R script to R...) You probably wonder, why might I be interested in running R with administrator privileges - the reason is that if R is installed under "c:" directory, I will be blocked from installing new packages to R (unless I either install R on "d:" drive, or enable admin privileges). I know many people here prefer linux (gnu/linux), but still some of us (for example, me) use windows, so help here will be valuable. Thanks, Tal ----------------Contact Details:------------------------------------------------------- Contact me: Tal.Galili@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]]
Andrew Redd
2010-Oct-22 14:40 UTC
[R] Dragging an .RData file into R on win-7 doesn't work?
NppToR is not guaranteed to work when ran as Administrator. This is due to the different permissions that is running. NppToR without admin privileges should not be able to find the running R process, or should not be able to control it. Although If you run NppToR as Admin it should be able to control it, but there is no reason to except to install the R auto completion files. My Suggestion, create a local library to keep your packages in. Save the location in your Rprofile file. Then there is no reason to ever run R as admin. -Andrew On Fri, Oct 22, 2010 at 3:16 AM, Tal Galili <tal.galili@gmail.com> wrote:> Hi all, > > I sometimes drag an .RData file into an open R console so to load that data > into the file. > I use windows 7, and it works fine. > > But, if I open R by using: > <right click on icon> -> properties -> compatibility -> (mark the box) "run > this program as an administrator" > Then I can no longer drag the .RData into the R console. > (also, the nppToR extension for notepadd++ stops sending the R script to > R...) > > You probably wonder, why might I be interested in running R with > administrator privileges - the reason is that if R is installed under > "c:" directory, I will be blocked from installing new packages to R (unless > I either install R on "d:" drive, or enable admin privileges). > > > I know many people here prefer linux (gnu/linux), but still some of us (for > example, me) use windows, so help here will be valuable. > Thanks, > Tal > > > > > ----------------Contact > Details:------------------------------------------------------- > Contact me: Tal.Galili@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]]