[R-pkg-devel] Avoiding differences between Examples output on Windows due to tibble

2019-01-16 Thread Gavin Simpson
Dear List, The latest version of tibble 2.0.1 is printing output (on Linux at least) that contains a UTF-8 ellipsis … instead of the previous three periods ... This is causing some differences between the reference materials for my pkg examples that I generate locally on Linux and the output

Re: [R-pkg-devel] shadowing a method from the stats package

2019-01-16 Thread Heather Turner
Hi Oscar, I don't think this is such a good idea, for a few reasons. First, `setMethod` defines an S4 method, so both an S3 method (from stats) and an S4 method (from your package) will be defined. This seems to work, but could give unexpected results and is confusing for anyone trying to

Re: [R-pkg-devel] txt data is undefined global variable

2019-01-16 Thread Uwe Ligges
On 16.01.2019 17:00, Thierry Onkelinx wrote: Dear all, I'm working on a package "foo" which has a dataframe stored in "data/foo.txt". The DESCRIPTION has "LazyData: true". Functions can use the object "foo". e.g. foo is not regisrered in the namespace and you are relying on search path

[R-pkg-devel] txt data is undefined global variable

2019-01-16 Thread Thierry Onkelinx
Dear all, I'm working on a package "foo" which has a dataframe stored in "data/foo.txt". The DESCRIPTION has "LazyData: true". Functions can use the object "foo". e.g. bar <- function() { summary(foo) } However, R CMD check throws the "undefined global variable" error. What is the proper way