[Rd] R CMD BATCH on scripts without trailing newline
If the last line of an R script does not have a trailing newline, a small errror is produced at the end of the script. Small example. If file eg.r contains one line: getwd() and there is no newline after the closing paren $ R CMD BATCH eg.r produces an error: $ cat eg.r.Rout R : Copyright 2005, The R Foundation for Statistical Computing Version 2.1.1 Patched (2005-09-01), ISBN 3-900051-07-0 ... > getwd()proc.time() Error: syntax error Execution halted $ Is it worth changing the BATCH script so that it adds a newline before adding the call to proc.time()? Stephen __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] R CMD BATCH on scripts without trailing newline
> You didn't tell us the *platform* you run R on > (and BATCH does depend on the platform), > but I know that it's a version of unix, Linux I suppose? Thanks Martin. Yes, linux - scientific linux 3 here. __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] suggestion for data.frame.Rd
Hi, a small suggestion - could data.frame.Rd mention 'subset'? Stephen *** /tmp/ediff26669jwQ 2010-08-11 12:41:49.0 +0100 --- r-devel/R/src/library/base/man/data.frame.Rd2010-08-11 12:17:27.0 +0100 *** *** 123,129 \code{\link{plot.data.frame}}, \code{\link{print.data.frame}}, \code{\link{row.names}}, \code{\link{names}} (for the column names), ! \code{\link{[.data.frame}} for subsetting methods,% ./Extract.data.frame.Rd \code{\link{Math.data.frame}} etc, about \emph{Group} methods for \code{data.frame}s; \code{\link{read.table}}, --- 123,130 \code{\link{plot.data.frame}}, \code{\link{print.data.frame}}, \code{\link{row.names}}, \code{\link{names}} (for the column names), ! \code{\link{[.data.frame}} for subsetting methods% ./Extract.data.frame.Rd ! including \code{\link{subset}}, \code{\link{Math.data.frame}} etc, about \emph{Group} methods for \code{data.frame}s; \code{\link{read.table}}, __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] suggestion for small change to pdf.Rd
Here is a patch against https://svn.r-project.org/R/trunk/src/library/grDevices/man/pdf.Rd to make description of defaults more consistent. Stephen --- pdf.Rd~ 2011-06-30 15:24:30.0 +0100 +++ pdf.Rd 2011-06-30 15:35:18.0 +0100 @@ -64,7 +64,7 @@ points. Defaults to \code{12}.} \item{pagecentre}{logical: should the device region be centred on the page? -- is only relevant for \code{paper != "special"}. Defaults -to true.} +to \code{TRUE}.} \item{colormodel}{a character string describing the color model: currently allowed values are \code{"rgb"}, \code{"gray"} and \code{"cmyk"}. Defaults to \code{"rgb"}.} @@ -79,7 +79,7 @@ \item{useKerning}{logical. Should kerning corrections be included in setting text and calculating string widths? Defaults to \code{TRUE}.} \item{fillOddEven}{logical controlling the polygon fill mode: see -\code{\link{polygon}} for details. Default \code{FALSE}.} +\code{\link{polygon}} for details. Defaults to \code{FALSE}.} \item{maxRasters}{integer. The maximum number of raster images that can be stored in this PDF document. Defaults to \code{64L}.} \item{compress}{logical. Should PDF streams be generated with Flate __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] typo in r-devel/R/src/library/base/man/files.Rd
files.Rd has the following typo, line 57: LIBK points to an actual file ... should be LINK Stephen __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] dump.frames in call from debugger()
Hi, https://svn.r-project.org/R/trunk/src/library/utils/R/debugger.R currently has the arg list of dump.frames as: dump.frames <- function(dumpto = "last.dump", to.file = FALSE) would it be sensible to change the default for to.file to be to.file = !interactive() So that last.dump.rda would be created if a script (such as below) is run with "R CMD BATCH" when it hits the error. Stephen ## simple error in script. options(error=recover) simple <- function() { errorhere() } simple() __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] typo in R-lang.texi
Hi, R-lang.texi line 2020/1 currently says: This allows, e.g., a local variable in a function to have the same name AS a global object. The word "AS" is missing in that sentence. (Line number according to https://svn.r-project.org/R/trunk/doc/manual/R-lang.texi) Stephen __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
[Rd] Clarification for options(OutDec)
The documentation for the OutDec option says that it should be a 'one-character string'; yet, if I try a unicode character, it doesn't seem to work. Are unicode chars not counted as one-character? This is within the mac GUI, but I also see this on linux boxes. > x <- '\u00B7' > nchar(x) [1] 1 > options(OutDec=x) Error in options(OutDec = x) : invalid value for 'OutDec' I don't think I've changed anything with my LANG settings, but here it is anyway: > Sys.getenv('LANG') LANG "en_GB.UTF-8" > version _ platform i386-apple-darwin8.11.1 arch i386 os darwin8.11.1 system i386, darwin8.11.1 status major 2 minor 9.0 year 2009 month 04 day17 svn rev48333 language R version.string R version 2.9.0 (2009-04-17) Stephen __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] Typos in TclInterface.Rd (PR#9436)
> If you are going to impose the cost on the developers of a bug report on > typos, please at least do as we _do_ ask and check the current version, in > your case at > > https://svn.r-project.org/R/trunk/src/library/tcltk/man/TclInterface.Rd > > You will I believe want to update your bug report. Thanks, this one still remains (other two already fixed). > > line 192: SIDE > > \code{tclvalue} function, which can also occur on the left SIE of Stephen __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel