Re: [Rd] chown, chgrp?
On Tue, Aug 14, 2012 at 9:30 PM, Hadley Wickham wrote: > Hi all, > > Is there an R wrapper for chown/chgrp (a la Sys.chmod)? I couldn't > find one with a few minutes of searching, but it seems like a curious > omission. A recursive grep of an R-dev source tree I had lying around couldn't find one in a few seconds. I'm not sure its a 'curious' omission, since its something normal users[1] can't do, and who runs R as root? Barry [1] Or at least normal normal users. There might be special normal users with certain chown permissions... __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] question concerning par("plt") and par("mar")
Hello, I have a function that changes par("plt") to plot a colorkey, and upon returning resets the original value. Unfortunately this changes the size of the plots when I change the layout. A simplified example: par(mfrow = c(1, 1)) plt <- par("plt") # # change par(plt) and create colorkey par(plt = plt)# resets the default plot(0) # OK par(mfrow = c(2,2)) # change layout plot(0) # figure too large; par("plt") is same as in mfrow = c(1,1)) I have now solved that by writing, after par(plt = plt) the following par(mar = par("mar")) as far as I can see, this only sets (in R-source-code par.c) the variable defaultPlot equal to TRUE. This seems to work, as now par("plt") is calculated when changing the layout. I wonder if this is a good way to do this - does it have other side-effects? Thanks, Karline Soetaert [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] chown, chgrp?
On Aug 15, 2012, at 3:49 AM, Barry Rowlingson wrote: > On Tue, Aug 14, 2012 at 9:30 PM, Hadley Wickham wrote: >> Hi all, >> >> Is there an R wrapper for chown/chgrp (a la Sys.chmod)? I couldn't >> find one with a few minutes of searching, but it seems like a curious >> omission. > > A recursive grep of an R-dev source tree I had lying around couldn't > find one in a few seconds. > > I'm not sure its a 'curious' omission, since its something normal > users[1] can't do, and who runs R as root? > > Barry > > [1] Or at least normal normal users. There might be special normal > users with certain chown permissions... > ... and moreover with the increasing adoption of ACL on unix and non-existence of uid/gid on Windows this is more an archaic curiosity so I don't think it makes sense to add it at this point. Cheers, Simon __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] Build from Source fails on Loading required package Matrix
Hello: I am building R 2.15.1 from source on a Windows 7 machine with the x64 toolset, MixTeX, and InnoSetup per http://cran.r-project.org/bin/windows/Rtools/. I obtained the source for 2.15.1 via svn from https://svn.r-project.org/R/branches/R-2-15-branch/. This is my first try building R from source. The build seems to go far, then terminates with "undefined exports: .M.classEnv" from the Matrix package, I believe. Here are the last few lines of the build session Creating a generic function for 'qr.resid' from package 'base' in package 'Matrix' Creating a generic function for 'qr.fitted' from package 'base' in package 'Matrix' ** help *** installing help indices ** building package indices Loading required package: Matrix Error in namespaceExport(ns, exports) : undefined exports: .M.classEnv Error : require(Matrix) is not TRUE ERROR: installing package indices failed * removing 'C:/Users/Dan/Documents/R-2.15.1/library/Matrix' make[1]: *** [Matrix.ts] Error 1 make: *** [recommended] Error 2 Perhaps there are special settings I should be making in MkRules.local? My only modification was MULTI = 64. Thanks in advance for your help. Dan Murphy [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] Build from Source fails on Loading required package Matrix
Dan, On Aug 15, 2012, at 10:54 AM, Dan Murphy wrote: > Hello: > > I am building R 2.15.1 from source on a Windows 7 machine with the x64 > toolset, MixTeX, and InnoSetup per > http://cran.r-project.org/bin/windows/Rtools/. I obtained the source for > 2.15.1 via svn from https://svn.r-project.org/R/branches/R-2-15-branch/. Did you also rsync the recommended packages? They are not in the SVN. If in doubt, use released source tar balls. Cheers, Simon > This is my first try building R from source. The build seems to go far, > then terminates with "undefined exports: .M.classEnv" from the Matrix > package, I believe. Here are the last few lines of the build session > > Creating a generic function for 'qr.resid' from package 'base' in package > 'Matrix' > Creating a generic function for 'qr.fitted' from package 'base' in package > 'Matrix' > ** help > *** installing help indices > ** building package indices > Loading required package: Matrix > Error in namespaceExport(ns, exports) : undefined exports: .M.classEnv > Error : require(Matrix) is not TRUE > ERROR: installing package indices failed > * removing 'C:/Users/Dan/Documents/R-2.15.1/library/Matrix' > make[1]: *** [Matrix.ts] Error 1 > make: *** [recommended] Error 2 > > Perhaps there are special settings I should be making in MkRules.local? My > only modification was MULTI = 64. > > Thanks in advance for your help. > > Dan Murphy > > [[alternative HTML version deleted]] > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > > __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] Build from Source fails on Loading required package Matrix
On Wed, Aug 15, 2012 at 8:04 AM, Simon Urbanek wrote: > > Dan, > > On Aug 15, 2012, at 10:54 AM, Dan Murphy wrote: > > > Hello: > > > > I am building R 2.15.1 from source on a Windows 7 machine with the x64 > > toolset, MixTeX, and InnoSetup per > > http://cran.r-project.org/bin/windows/Rtools/. I obtained the source for > > 2.15.1 via svn from https://svn.r-project.org/R/branches/R-2-15-branch/. > > Did you also rsync the recommended packages? They are not in the SVN. If > in doubt, use released source tar balls. > > Cheers, > Simon > Thanks, Simon. I should have mentioned that as well. Yes, I did "make rsync-recommended" per Chapter 3 of the manual and that worked without error. I first inadvertently had tried to build the 2.16 version in /trunk and got that "undefined exports" error, then switched to the /R-2-15-branch when I realized /trunk held the development version. In between the two svn checkouts, I had tried the source tar ball at the link R-2.15.1.tar.gz. That terminated much sooner in the build, which I thought could have resulted from me using 7-Zip on the tar ball (lacking a windows version of your tar), so I went back to the subversion checkout method. > > > > This is my first try building R from source. The build seems to go far, > > then terminates with "undefined exports: .M.classEnv" from the Matrix > > package, I believe. Here are the last few lines of the build session > > > > Creating a generic function for 'qr.resid' from package 'base' in > > package > > 'Matrix' > > Creating a generic function for 'qr.fitted' from package 'base' in > > package > > 'Matrix' > > ** help > > *** installing help indices > > ** building package indices > > Loading required package: Matrix > > Error in namespaceExport(ns, exports) : undefined exports: .M.classEnv > > Error : require(Matrix) is not TRUE > > ERROR: installing package indices failed > > * removing 'C:/Users/Dan/Documents/R-2.15.1/library/Matrix' > > make[1]: *** [Matrix.ts] Error 1 > > make: *** [recommended] Error 2 > > > > Perhaps there are special settings I should be making in MkRules.local? > > My > > only modification was MULTI = 64. > > > > Thanks in advance for your help. > > > > Dan Murphy > > > > [[alternative HTML version deleted]] > > > > __ > > R-devel@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-devel > > > > > __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] chown, chgrp?
On Wed, Aug 15, 2012 at 2:47 PM, Simon Urbanek wrote: > > ... and moreover with the increasing adoption of ACL on unix and > non-existence of uid/gid on Windows this is more an archaic curiosity so I > don't think it makes sense to add it at this point. > It does however raise the question, "What is Hadley up to now?" :) Barry __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] chown, chgrp?
setgid, at least, can be useful for non-root users who wish to share files with folks in a different group than is their default... -- Gregory Warnes, Ph.D. Sr. Expert Modeler Modeling and Simulation CA Phone: +1 617 871-8498 gregory.war...@novartis.com On 8/15/12 11:56 AM, "Barry Rowlingson" wrote: >On Wed, Aug 15, 2012 at 2:47 PM, Simon Urbanek > wrote: > >> >> ... and moreover with the increasing adoption of ACL on unix and >>non-existence of uid/gid on Windows this is more an archaic curiosity so >>I don't think it makes sense to add it at this point. >> > > It does however raise the question, "What is Hadley up to now?" :) > >Barry > >__ >R-devel@r-project.org mailing list >https://stat.ethz.ch/mailman/listinfo/r-devel __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] Build from Source fails on Loading required package Matrix
On 15.08.2012 17:53, Dan Murphy wrote: On Wed, Aug 15, 2012 at 8:04 AM, Simon Urbanek wrote: Dan, On Aug 15, 2012, at 10:54 AM, Dan Murphy wrote: Hello: I am building R 2.15.1 from source on a Windows 7 machine with the x64 toolset, MixTeX, and InnoSetup per http://cran.r-project.org/bin/windows/Rtools/. I obtained the source for 2.15.1 via svn from https://svn.r-project.org/R/branches/R-2-15-branch/. Did you also rsync the recommended packages? They are not in the SVN. If in doubt, use released source tar balls. Cheers, Simon Thanks, Simon. I should have mentioned that as well. Yes, I did "make rsync-recommended" per Chapter 3 of the manual and that worked without error. I first inadvertently had tried to build the 2.16 version in /trunk and got that "undefined exports" error, then switched to the /R-2-15-branch when I realized /trunk held the development version. In between the two svn checkouts, I had tried the source tar ball at the link R-2.15.1.tar.gz. That terminated much sooner in the build, which I thought could have resulted from me using 7-Zip on the tar ball (lacking a windows version of your tar), so I went back to the subversion checkout method. Please read the R Installation and Administration manual that explains how to set up your environment under Windows to build R yourself and what tools are needed. Note that a binary is available from CRAN. Uwe Ligges This is my first try building R from source. The build seems to go far, then terminates with "undefined exports: .M.classEnv" from the Matrix package, I believe. Here are the last few lines of the build session Creating a generic function for 'qr.resid' from package 'base' in package 'Matrix' Creating a generic function for 'qr.fitted' from package 'base' in package 'Matrix' ** help *** installing help indices ** building package indices Loading required package: Matrix Error in namespaceExport(ns, exports) : undefined exports: .M.classEnv Error : require(Matrix) is not TRUE ERROR: installing package indices failed * removing 'C:/Users/Dan/Documents/R-2.15.1/library/Matrix' make[1]: *** [Matrix.ts] Error 1 make: *** [recommended] Error 2 Perhaps there are special settings I should be making in MkRules.local? My only modification was MULTI = 64. Thanks in advance for your help. Dan Murphy [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] chown, chgrp?
On Aug 15, 2012, at 17:56 , Barry Rowlingson wrote: > On Wed, Aug 15, 2012 at 2:47 PM, Simon Urbanek > wrote: > >> >> ... and moreover with the increasing adoption of ACL on unix and >> non-existence of uid/gid on Windows this is more an archaic curiosity so I >> don't think it makes sense to add it at this point. >> > > It does however raise the question, "What is Hadley up to now?" :) Aiming for the fortune file again, Barry? Anyways, since it is not portable anyway, what was ever wrong with system(sprintf("chown %s %s", foo, bar) ? -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: pd@cbs.dk Priv: pda...@gmail.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] chown, chgrp?
library(pwned)? On Wed, Aug 15, 2012 at 10:56 AM, Barry Rowlingson wrote: > On Wed, Aug 15, 2012 at 2:47 PM, Simon Urbanek > wrote: > >> >> ... and moreover with the increasing adoption of ACL on unix and >> non-existence of uid/gid on Windows this is more an archaic curiosity so I >> don't think it makes sense to add it at this point. >> > > It does however raise the question, "What is Hadley up to now?" :) > > Barry > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Jeffrey Ryan jeffrey.r...@lemnica.com www.lemnica.com __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] warning in lattice key function
## this example shows a problem in key. tmp <- data.frame(y=rnorm(10), g=rep(ordered(c("A","B")), 5)) bwplot(y ~ g, data=tmp, key=list( text=list(c("A","B"), col=c("blue","red")), points=list(pch=c(17, 16), col=c("blue","red")), space="top", columns=2, border=TRUE, title="Treatment", cex.title=.9 ) ) ## The example works without warning messages in 2.15.1. ## I first detected the problem in # R Under development (unstable) (2012-07-24 r59961) ## windows # R Under development (unstable) (2012-08-02 r60091) ## macintosh ## The problem still exists in ## R Under development (unstable) (2012-08-13 r60245) -- "Unsuffered Consequences" ## downloaded from lib.stat.cmu.edu Wed Aug 15 2012 11PM EST > tmp <- data.frame(y=rnorm(10), g=rep(ordered(c("A","B")), 5)) > bwplot(y ~ g, data=tmp, +key=list( + text=list(c("A","B"), col=c("blue","red")), + points=list(pch=c(17, 16), col=c("blue","red")), + space="top", columns=2, border=TRUE, + title="Treatment", cex.title=.9 + ) +) Warning messages: 1: In FUN(X[[9L]], ...) : 'x' is NULL so the result will be NULL 2: In FUN(X[[9L]], ...) : 'x' is NULL so the result will be NULL 3: In FUN(X[[9L]], ...) : 'x' is NULL so the result will be NULL 4: In FUN(X[[9L]], ...) : 'x' is NULL so the result will be NULL 5: In FUN(X[[9L]], ...) : 'x' is NULL so the result will be NULL > version _ platform i386-w64-mingw32 arch i386 os mingw32 system i386, mingw32 status Under development (unstable) major 2 minor 16.0 year 2012 month 08 day13 svn rev60245 language R version.string R Under development (unstable) (2012-08-13 r60245) nickname Unsuffered Consequences > [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] warning in lattice key function
This is not the address for the maintainer of package 'lattice': what did he say when you asked him (see the posting guide)? (Because I reported it some weeks back, I know he agrees it is a bug in lattice and will be fixed in the next release.) On 16/08/2012 04:05, Richard M. Heiberger wrote: ## this example shows a problem in key. tmp <- data.frame(y=rnorm(10), g=rep(ordered(c("A","B")), 5)) bwplot(y ~ g, data=tmp, key=list( text=list(c("A","B"), col=c("blue","red")), points=list(pch=c(17, 16), col=c("blue","red")), space="top", columns=2, border=TRUE, title="Treatment", cex.title=.9 ) ) ## The example works without warning messages in 2.15.1. ## I first detected the problem in # R Under development (unstable) (2012-07-24 r59961) ## windows # R Under development (unstable) (2012-08-02 r60091) ## macintosh ## The problem still exists in ## R Under development (unstable) (2012-08-13 r60245) -- "Unsuffered Consequences" ## downloaded from lib.stat.cmu.edu Wed Aug 15 2012 11PM EST tmp <- data.frame(y=rnorm(10), g=rep(ordered(c("A","B")), 5)) bwplot(y ~ g, data=tmp, +key=list( + text=list(c("A","B"), col=c("blue","red")), + points=list(pch=c(17, 16), col=c("blue","red")), + space="top", columns=2, border=TRUE, + title="Treatment", cex.title=.9 + ) +) Warning messages: 1: In FUN(X[[9L]], ...) : 'x' is NULL so the result will be NULL 2: In FUN(X[[9L]], ...) : 'x' is NULL so the result will be NULL 3: In FUN(X[[9L]], ...) : 'x' is NULL so the result will be NULL 4: In FUN(X[[9L]], ...) : 'x' is NULL so the result will be NULL 5: In FUN(X[[9L]], ...) : 'x' is NULL so the result will be NULL version _ platform i386-w64-mingw32 arch i386 os mingw32 system i386, mingw32 status Under development (unstable) major 2 minor 16.0 year 2012 month 08 day13 svn rev60245 language R version.string R Under development (unstable) (2012-08-13 r60245) nickname Unsuffered Consequences [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel -- Brian D. Ripley, rip...@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UKFax: +44 1865 272595 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel