[Rd] system() and system2() do not use long filenames on Windows

2018-04-30 Thread Hong Ooi via R-devel
Hi, On Windows, it appears that system() and system2() both use the 8.3 filename to run the supplied command, even if the full name is used. Most of the time this doesn't matter, but for .NET programs, it stops the program from finding its app.config file (which has the same name as the app, wi

[Rd] Unexpected behaviour with download.packages on Windows

2017-09-29 Thread Hong Ooi via R-devel
If no 'type' is specified, download.packages("pkgname") will download source packages (.tar.gz files), even on Windows. However, the help says type character string, indicate which type of packages: see install.packages. and on Windows, install.packages defaults to downloading binary pack

[Rd] Odd behaviour in within.list() when deleting 2+ variables

2017-06-26 Thread Hong Ooi via R-devel
The behaviour of within() with list input changes if you delete 2 or more variables, compared to deleting one: l <- list(x=1, y=2, z=3) within(l, { rm(z) }) #$x #[1] 1 # #$y #[1] 2 within(l, { rm(y) rm(z) }) #$x #[1] 1 # #$y #NULL # #$z #NULL When 2 or more variables are deleted,

[Rd] Unexpected interaction between missing() and a blank expression

2017-06-06 Thread Hong Ooi via R-devel
This is something I came across just now: f <- function(x) missing(x) z <- quote(expr=) f(z) # TRUE The object z contains the equivalent of a missing function argument. Another method for generating a missing arg would be alist(a=)$a . Should f(z) return TRUE in this case? I interpret missing(

[Rd] Long execution time for quantile() and difftime objects (PR#14091)

2009-11-27 Thread hong . ooi
Full_Name: Hong Ooi Version: 2.10.0 OS: Windows XP Submission from: (NULL) (203.110.235.1) While trying to get summary statistics on a duration variable (the difference between a start and end date), I ran into the following issue. Using summary or quantile (which summary calls) on a difftime

[Rd] (PR#7495) Function Body / Formals Bug

2005-10-30 Thread Hong . Ooi
b, c, d) ## the d argument reappeared! > >As you can see from above, the d=3D argument got chopped off completely >the first time "formals<-"() is called, but not the second!=20 --=20 Hong Ooi Senior Research Analyst Insurance Australia Group, 388 George St, Sydney NSW 2000