Re: [R-pkg-devel] FW: CRAN submission berryFunctions 1.8.0

2015-06-03 Thread Kirill Müller
Note that current devtools 1.8.0 attempts to use the spell checker when you say devtools::check(check_version = TRUE), and warns if no spell checker could be found. Perhaps a simpler option is to build on win-builder before submission (e.g., by running devtools::build_win() ), which is a good i

Re: [R-pkg-devel] S3 method, useMethod and <-, using Roxygen

2015-10-23 Thread Kirill Müller
values -> value is a typo in the implementation of .default(). I'm not sure you need to document the .default() function (the second @rdname set_labels). If this doesn't help, you could try renaming set_labels() to avoid collisions. Best regards Kirill On 23.10.2015 10:30, Daniel Lüdecke w

Re: [R-pkg-devel] Problems with :::

2016-01-28 Thread Kirill Müller
On 28.01.2016 14:20, Duncan Murdoch wrote: If the class is just "mytable", then you'll have to change it to "ftable" before calling stats::format(). Side note: The following will fail, because format.ftable double-checks the class of its argument: format_ftable <- utils::getS3method("format",

Re: [R-pkg-devel] Namespace error

2016-02-23 Thread Kirill Müller
It's difficult to tell without seeing the source code, but the NAMESPACE you posted doesn't seem to contain "View". This file usually gets updated when you call devtools::document() or roxygen2::roxygenize(). What happens if you run one of these functions? -Kirill On 16.02.2016 18:14, Glenn

Re: [R-pkg-devel] Scripts to generate data objects

2016-03-31 Thread Kirill Müller
The devtools::use_data_raw() function creates a "data-raw" directory for this purpose, and adds it to .Rbuildignore so that it's not included in the built package. Your scripts can then write the data to the proper place using devtools::use_data(). -Kirill On 30.03.2016 14:03, Iago Mosqueir

[R-pkg-devel] S3 dispatch for select()

2017-05-24 Thread Kirill Müller
Hi When a package defines a select() generic, objects of type list seem to be forcibly dispatched to utils::select.list(). This is not the case when the generic is defined in a regular R script. I could define a select__() generic and forward all select() calls to select__() first, but I won

Re: [R-pkg-devel] active bindings in package namespace

2019-03-23 Thread Kirill Müller
Dear Jack This doesn't answer your question, but I would advise against this design. - Users do not expect side effects (such as network access) from accessing a symbol. - A function gives you much more flexibility to change the interface later on. (Arguments for fetching the data, tokens f