R CMD check: should .Rout.save contain the new "Registered S3 method overwritten by" message?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

R CMD check: should .Rout.save contain the new "Registered S3 method overwritten by" message?

Matthieu Stigler
Hi

Since I believe 3.6, there is a message when loading a package that
overwrites S3 methods, reading like "Registered S3 method overwritten
by...". Should this message be included in the xxx.Rout.save files saved in
the tests/ folder of a package? It seems R CMD check is not happy about it?

I simply ran R CMD BATCH xxx.R xxx.Rout.save but running later on R CMD
check on the package complains about the presence of the "Registered S3
method overwritten..." text? Did I do something wrong? Is this the correct
way to do, and R CMD check should be updated? Or should I not include the
"Registered S3 method overwritten"  in the .Rout.save (and how can I do
that?)?

Thanks!

Matthieu

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Reply | Threaded
Open this post in threaded view
|

Re: R CMD check: should .Rout.save contain the new "Registered S3 method overwritten by" message?

Matthieu Stigler
Hi

Following-up on this question. I don't understand why R CMD check creates
.Rout files that do not contain the message "Registered S3 method
overwritten by..." that I otherwise obtain with an interactive R session,
or with R CMD BATCH? Can I recreate the behaviour of R CMD check calling
directly R CMD BATCH?

Thanks!

Matthieu

Le lun. 5 août 2019 à 11:12, Matthieu S <[hidden email]> a
écrit :

> Hi
>
> Since I believe 3.6, there is a message when loading a package that
> overwrites S3 methods, reading like "Registered S3 method overwritten
> by...". Should this message be included in the xxx.Rout.save files saved in
> the tests/ folder of a package? It seems R CMD check is not happy about it?
>
> I simply ran R CMD BATCH xxx.R xxx.Rout.save but running later on R CMD
> check on the package complains about the presence of the "Registered S3
> method overwritten..." text? Did I do something wrong? Is this the correct
> way to do, and R CMD check should be updated? Or should I not include the
> "Registered S3 method overwritten"  in the .Rout.save (and how can I do
> that?)?
>
> Thanks!
>
> Matthieu
>

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel