search for: joshmobrien

Displaying 9 results from an estimated 9 matches for "joshmobrien".

2015 May 18
4
How best to get around shadowing of executables by system()'s prepending of directories to Windows' PATH?
My question: On Windows, R's system() command prepends several directories to those in the Windows Path variable. >From ?system The search path for 'command' may be system-dependent: it will include the R 'bin' directory, the working directory and the Windows system directories before 'PATH'. This shadows any executables on the Path that share a
2013 Mar 22
1
Why does typeof() modify an object's "named" field?
Hello, Doing typeof() on an object appears to reset the "named" field in its sxpinfo header to 2, which can change the way that subsequent subassignment operations are carried out: X <- 1:5e7 .Internal(inspect(X)) # @4eeb0008 13 INTSXP g0c7 [NAM(1)] (len=50000000, tl=0) 1,2,3,4,5,... system.time(X[1] <- 9L) # user system elapsed # 0 0 0 typeof(X)
2015 May 18
0
How best to get around shadowing of executables by system()'s prepending of directories to Windows' PATH?
+1 I have exactly the same problem. Regards, Yihui -- Yihui Xie <xieyihui at gmail.com> Web: http://yihui.name On Mon, May 18, 2015 at 12:29 PM, Josh O'Brien <joshmobrien at gmail.com> wrote: > My question: > > On Windows, R's system() command prepends several directories to those > in the Windows Path variable. > > >From ?system > > The search path for 'command' may be system-dependent: it will > include the R...
2016 Jan 05
0
For integer vectors, `as(x, "numeric")` has no effect.
>>>>> Josh O'Brien <joshmobrien at gmail.com> >>>>> on Mon, 4 Jan 2016 16:16:51 -0800 writes: > On Dec 19, 2015, at 3:32 AM, Martin Maechler <maechler at stat.math.ethz.ch> wrote: >>>>>>> Martin Maechler <maechler at stat.math.ethz.ch> on >>>>...
2016 Jan 05
2
For integer vectors, `as(x, "numeric")` has no effect.
On Dec 19, 2015, at 3:32 AM, Martin Maechler <maechler at stat.math.ethz.ch> wrote: >>>>>> Martin Maechler <maechler at stat.math.ethz.ch> >>>>>> on Sat, 12 Dec 2015 10:32:51 +0100 writes: > >>>>>> John Chambers <jmc at r-project.org> >>>>>> on Fri, 11 Dec 2015 10:11:05 -0800 writes: >
2015 Feb 20
1
Can R for Windows be built outside of the top-level source directory?
The "R-admin" manual describes how to build R from outside of the top-level source directory on a *NIX machine (http://cran.r-project.org/doc/manuals/r-release/R-admin.html#Simple-compilation), but it makes no analagous mention of a way to do so under Windows. Since the build process in Windows is so different (not using configure, for instance, and typically being performed from within
2013 Feb 04
1
R-lang edit: deparse(1:2) is no longer a good example of the R parser's non-invertibility
Hello, Apparently thanks to improvements to the R parser, this example from section 6.1 of the R Language Definition no longer holds. > deparse(quote(c(1, 2))) [1] "c(1, 2)" > deparse(1:2) [1] "c(1, 2)" Even running R-2.14.2, I get instead > deparse(1:2) [1] "1:2"
2015 Dec 04
2
For integer vectors, `as(x, "numeric")` has no effect.
Here's the surprising behavior: x <- 1L xx <- as(x, "numeric") class(xx) ## [1] "integer" It occurs because the call to `as(x, "numeric")` dispatches the coerce S4 method for the signature `c("integer", "numeric")`, whose body is copied in below. function (from, to = "numeric", strict = TRUE) if (strict) {
2012 Oct 02
1
Minor edit to R-ints doc will be needed for R-2.15.2: axis() no longer uses .Internal()
Hello, The second paragraph of Chapter 2: .Internal vs .Primitive of R-ints uses axis() as an example of a function that uses .Internal(). Here's the quote: > Functions using .Internal() wrapped in a closure are in general preferred as this ensures > standard handling of named and default arguments. For example, axis is defined as > > axis <- function(side, at = NULL, labels =