[Rd] [PATCH 2/2] readtable: add test for type conversion hook 'colConvert'

2019-03-25 Thread Kurt Van Dijck
Signed-off-by: Kurt Van Dijck --- tests/reg-tests-2.R | 21 + tests/reg-tests-2.Rout.save | 27 +++ 2 files changed, 48 insertions(+) diff --git a/tests/reg-tests-2.R b/tests/reg-tests-2.R index 9fd5242..5026fe7 100644 --- a/tests/reg-tests-2.R

[Rd] [PATCH 1/2] readtable: add hook for type conversions per column

2019-03-25 Thread Kurt Van Dijck
This commit adds a function parameter to readtable. The function is called for every column. The goal is to allow specific (non-standard) type conversions depending on the input. When the parameter is not given, or the function returns NULL, the legacy default applies. The colClasses parameter st

[Rd] R 3.5.3 having trouble spawning a new process on my Windows 10 machine

2019-03-25 Thread Sam Albers
Hi all, I am noticing some strange behaviour so I am bringing to this list. In the past when I have submitted bugs to bugzilla, I have come here first for confirmation/advice. Hopefully this is appropriate. Upgrading from R 3.5.2 to R 3.5.3 seems to have elicited some strange behaviour on my Wind

Re: [Rd] R 3.5.3 having trouble spawning a new process on my Windows 10 machine

2019-03-25 Thread Joris Meys
Hi Sam, Is your PATH set on your user environment variables or on the system? Did you try to remove the entry for R-3.5.2 ? I have tested with a standard install, and I can't reproduce your error. I have the exact same path in my system PATH environment variable for 3.5.3, and nothing for other v

Re: [Rd] Discrepancy between is.list() and is(x, "list")

2019-03-25 Thread Abs Spurdle
> I have noticed a discrepancy between is.list() and is(x, “list”) There's a similar problem with inherits(). On R 3.5.3: > f = function () 1 > class (f) = "f" > is.function (f) [1] TRUE > inherits (f, "function") [1] FALSE I didn't check what happens with: > class (f) = c ("f", "function") H

[Rd] bugs in head() and tail()

2019-03-25 Thread Abs Spurdle
(Using R 3.5.3). I found bugs in head() and tail(). The following works: > f = function () 1 > head (f) 1 function () 2 1 However, the following does not: > class (f) = "f" > head (f) Error in x[seq_len(n)] : object of type 'closure' is not subsettable [[alternative HTML version delet

Re: [Rd] bugs in head() and tail()

2019-03-25 Thread Gabriel Becker
Hi Abs, This is because the class is "f", not c("f", "function") in your second example. S3 method dispatch is doing what you (unintentionally, I presume) asked it to do. The S3 method which allows head to take functions is utils:::head.function. S3 can only be expected to understand inheritance