Re: [R-pkg-devel] coercion in R CMD check

2015-12-02 Thread William Dunlap
It may depend on your locale setting (see Sys.getlocale() and Sys.setlocale()). In what locale is "/A/string" > "0"? Bill Dunlap TIBCO Software wdunlap tibco.com On Wed, Dec 2, 2015 at 3:24 PM, Facundo Muñoz wrote: > I have been struggling all day with this issue, which was terribly > difficult

Re: [R-pkg-devel] coercion in R CMD check

2015-12-02 Thread Uwe Ligges
On 03.12.2015 00:24, Facundo Muñoz wrote: I have been struggling all day with this issue, which was terribly difficult to identify. In the end, if I have a test in my package such as: test_that("coercions works... depending the check", { s = "/A/string/starting/with/a/slash" expect_true

Re: [R-pkg-devel] coercion in R CMD check

2015-12-02 Thread Dirk Eddelbuettel
On 3 December 2015 at 00:24, Facundo Muñoz wrote: | I have been struggling all day with this issue, which was terribly | difficult to identify. | | In the end, if I have a test in my package such as: | | test_that("coercions works... depending the check", { | s = "/A/string/starting/with/a/sla

[R-pkg-devel] coercion in R CMD check

2015-12-02 Thread Facundo Muñoz
I have been struggling all day with this issue, which was terribly difficult to identify. In the end, if I have a test in my package such as: test_that("coercions works... depending the check", { s = "/A/string/starting/with/a/slash" expect_true(s > 0) }) then if I test() it, it goes fine.