Displaying 20 results from an estimated 11000 matches similar to: "Package size NOTE in R CMD check"
2015 Apr 29
2
R CMD check and missing imports from base packages
On Wed, Apr 29, 2015 at 12:53 PM, Winston Chang <winstonchang1 at gmail.com>
wrote:
> On Tue, Apr 28, 2015 at 3:04 PM, G?bor Cs?rdi <csardi.gabor at gmail.com>
> wrote:
> >
> >
> > E.g. if package 'ggplot2' uses 'stats::density()', and package 'igraph'
> > also defines 'density()', and 'igraph' is on the search
2018 Jul 12
3
Top level \Sexpr and R CMD check
On Thu, Jul 12, 2018 at 2:21 PM Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
> I think I found the bug. The tools::checkRd function only processes
> \Sexpr's with "stage=render". I think the author (who might have been
> me, I forget) assumed that would imply all the earlier stages as well,
> but apparently it doesn't.
>
> So you could use that as
2015 Apr 29
4
R CMD check and missing imports from base packages
On Wed, Apr 29, 2015 at 1:45 PM, Gabriel Becker <gmbecker at ucdavis.edu>
wrote:
> Gabor,
>
> To play devil's advocate a bit, why not just have the package formally
> import the functions it wants to use (or the whole package if that is
> easier)?
>
This is exactly my goal. And to facilitate this, R CMD check could remind
you if you forgot to do the formal import.
2018 Jul 12
1
Top level \Sexpr and R CMD check
On 12/07/2018 9:46 AM, G?bor Cs?rdi wrote:
> On Thu, Jul 12, 2018 at 2:30 PM G?bor Cs?rdi <csardi.gabor at gmail.com> wrote:
>>
>> On Thu, Jul 12, 2018 at 2:21 PM Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
>>> I think I found the bug. The tools::checkRd function only processes
>>> \Sexpr's with "stage=render". I think the author
2015 Apr 28
5
R CMD check and missing imports from base packages
When a symbol in a package is resolved, R looks into the package's
environment, and then into the package's imports environment. Then, if the
symbol is still not resolved, it looks into the base package. So far so
good.
If still not found, it follows the 'search()' path, starting with the
global environment and then all attached packages, finishing with base and
recommended
2016 Feb 25
1
Two ideas / feature requests for R CMD check
We all love R CMD check. :) In my opinion it would be even better if
it had options to
- Run all checks, even if one fails with an error. I realize this
sometimes might not make sense (e.g. if there is no DESCRIPTION file),
but often does.
- Run all examples even if an example fails. I think it would be great
to get all failing examples at once, so that a package author can
estimate the amount
2011 Oct 19
3
RFC: 'igraph' package update and backward compatibility
Dear R developers,
I am seeking advice on some $subject matter.
My package will have an update soon, that is not backward compatible
with the current version. It will likely break much of the existing
code. Many (~50) packages depend on 'igraph' and they, too, will most
probably break with the new version.
My intended solution is, that I create a snapshot of the current
package, under
2019 Jun 30
5
Making R CMD nicer
For the record, this is Linux R-devel:
root at 4bef68c16864:~# R CMD
/opt/R-devel/lib/R/bin/Rcmd: 60: shift: can't shift that many
root at 4bef68c16864:~# R CMD -h
/opt/R-devel/lib/R/bin/Rcmd: 62: exec: -h: not found
root at 4bef68c16864:~# R CMD --help
/opt/R-devel/lib/R/bin/Rcmd: 62: exec: --help: not found
This is R-release on macOS:
? R CMD
2017 Mar 04
5
can we override "if" in R?
I'm just curious. Why making "if" generic is even more dangerous?
Best,
Da
On Sat, Mar 4, 2017 at 1:22 PM, G?bor Cs?rdi <csardi.gabor at gmail.com> wrote:
> `!` is a generic, `if` is not. You can define an `if` that is generic,
> but this might be even more dangerous....
>
> ? `if` <- function(a, b, c) UseMethod("if")
> ? `if.default` <-
2018 Jul 12
2
Top level \Sexpr and R CMD check
On Thu, Jul 12, 2018 at 12:23 PM Duncan Murdoch
<murdoch.duncan at gmail.com> wrote:
>
> On 12/07/2018 6:33 AM, G?bor Cs?rdi wrote:
> > I would like to create \examples{} in the manual dynamically, and
> > while it is possible to do this with a \Sexpr at the top level, R CMD
> > check issues a warning for it. (See below.)
> >
> > Is it intentional that
2015 Apr 29
0
R CMD check and missing imports from base packages
All,
Here are two ideas on this:
1. have R CMD check show how every external function reference gets
resolved.
2. have R CMD check warn anytime there is a potential name conflict, e.g.
density( ) coming from either igraph or stats, and show how it was
resolved.
Either could be an option. I guess there are potential problems with
conditional loading of libraries where a function could be
2020 Jun 09
2
r-project.org SSL certificate issues
Was this resolved upstream or is this something that R should/could
fix? If the latter, could this also go into the "emergency release" R
4.0.2 that is scheduled for 2020-06-22?
My $.02
/Henrik
On Sun, May 31, 2020 at 8:13 AM G?bor Cs?rdi <csardi.gabor at gmail.com> wrote:
>
> Btw. it would be also possible to create a macOS R installer that
> embeds a static or
2020 May 31
2
r-project.org SSL certificate issues
On Sat, May 30, 2020 at 11:32 PM G?bor Cs?rdi <csardi.gabor at gmail.com> wrote:
[...]
> Btw. why does this affect openssl? That root cert was published in
> 2010, surely openssl should know about it? Maybe libcurl / openssl
> only uses the chain provided by the server? Without trying to use an
> alternate chain?
Yes, indeed it seems that old OpenSSL versions cannot handle
2018 Jul 12
2
Top level \Sexpr and R CMD check
I would like to create \examples{} in the manual dynamically, and
while it is possible to do this with a \Sexpr at the top level, R CMD
check issues a warning for it. (See below.)
Is it intentional that \Sexpr is not allowed at the top level? The Rd
grammar allows this, but R CMD check does not.
Is there any other way to generate/modify the \examples{} section dynamically?
Thanks, Gabor
In
2015 Apr 30
2
R CMD check and missing imports from base packages
On Wed, Apr 29, 2015 at 8:12 PM, Paul Gilbert <pgilbert902 at gmail.com> wrote:
>
> As I recall, several packages mask the simulate generic in stats, if you
> are looking for examples.
>
FWIW, here is a list of base* functions masked** by CRAN packages:
https://github.com/gaborcsardi/rfunctions/blob/master/rfunctions.md
Look at the long table in the end. simulate indeed comes up
2015 Apr 29
0
R CMD check and missing imports from base packages
Gabor,
To play devil's advocate a bit, why not just have the package formally
import the functions it wants to use (or the whole package if that is
easier)? Also, if your package Depends on another package, instead of
importing it (e.g. because the end user will need functions in it in order
to meaningfully use your functions), I imagine you *want* to hit symbols in
that package before base,
2011 Nov 22
3
On-demand importing of a package
Dear All,
in some functions of my package, I use the Matrix S4 class, as defined
in the Matrix package.
I don't want to depend on Matrix, however, because my package is
perfectly fine without Matrix, most of the functionality does not need
Matrix. Matrix is so included in the 'Suggests' line.
I load Matrix via require(), from the functions that really need it.
This mostly works
2019 Apr 30
2
Background R session on Unix and SIGINT
OK, I managed to create an example without callr, but it is still
somewhat cumbersome. Anyway, here it is.
Terminal 1:
mkfifo fif
R --no-readline --slave --no-save --no-restore < fif
Terminal 2:
cat > fif
Sys.getpid()
This will make Terminal 1 print the pid of the R process, so we can
send a SIGINT:
Terminal 3:
kill -INT pid
The R process is of course still running happily.
Terminal 2
2017 Dec 05
2
command line arguments are parsed differently on windows, from 3.4.3
Sorry for not reading carefully and thanks for confirming problem with
Rscript too.
On Dec 5, 2017 08:47, "G?bor Cs?rdi" <csardi.gabor at gmail.com> wrote:
> On Tue, Dec 5, 2017 at 4:40 PM, Henrik Bengtsson
> <henrik.bengtsson at gmail.com> wrote:
> > One comment:
> > For your R devel example you didn't use spaces in the expression, i.e.
> maybe
2017 Mar 04
2
can we override "if" in R?
Thanks.
Can I override it for a specific class?
I can do that for operators such as "!". For example, "!.fm" works for
objects of the class "fm".
It seems I can't do the same for "if".
Best,
Da
On Sat, Mar 4, 2017 at 12:41 PM, G?bor Cs?rdi <csardi.gabor at gmail.com> wrote:
> You can. Perhaps needless to say, be careful with this.
>
> ?