Message-ID: <CAF8bMcZcL=rdnEGSUs_MoswNJ9Pvb5pw7vuRLnKZLVHwRZDC2Q@mail.gmail.com>
Date: 2015-12-03T00:50:41Z
From: William Dunlap
Subject: [R-pkg-devel] coercion in R CMD check
In-Reply-To: <565F7DA6.5060905@gmail.com>
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 <famuvie at gmail.com> 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(s > 0)
> })
>
>
> then if I test() it, it goes fine.
> But if I R CMD check the packaged source, it fails.
>
> I don't understand the difference between the testing performed by R CMD
> check, and the testing performed by myself. It is not related with
> --as-cran.
>
>
> Cheers
> ?acu.-
>
> ______________________________________________
> R-package-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel