wahani / templates

Tools for Template Programming in R
Other
3 stars 1 forks source link

Lots of messages if using dplyr + templates #10

Open gorgyx opened 7 months ago

gorgyx commented 7 months ago

After loading libraries dplyr AND templates (which is not the problem), I get many of these messages,

Mehr als eine Klasse "tbl_df" im Cache gefunden; nutze die erste, kommt aus Namensraum 'tibble' Auch definiert durch ‘dat’ (In english: More of one class "tbl_df" found in cache; using the first one, coming from namespace 'tibble'. Also defined in 'dat'.)

The message is probably written everytime an object having this class is changed. The text appears in red in the Rstudio Console, but it does not say that it is a warning (; strange...). Versions used: dplyr 1.1.4, templates 0.3.0

(Not urgent for me: In my simple case was sufficient to not use templates but to use gsub and eval(parse(text=...)) instead)

wahani commented 7 months ago

Hi thanks for reaching out and creating the issue.

With R 4.3.2 and just by calling

library("dplyr")
library("templates")

I cannot reproduce this. Not in plain R and also not in RStudio. Are you doing anything else than this?

wahani commented 7 months ago

Maybe we haven't published the latest version to CRAN. Can you check if your issue is still there if you install the latest version from GitHub with:

devtools::install_github("wahani/templates")
wahani commented 7 months ago

Just published version 0.4.0. I think the warnings have been caused by the dependency of templates@0.3.0 to dat, which is now gone and not needed.

If you find the time, please report back if this resolves the reported problem.