strengejacke / sjlabelled

Working with Labelled Data in R

Home Page:https://strengejacke.github.io/sjlabelled

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

as_label() name collision with dplyr

dicorynia opened this issue · comments

Hi
Thanks for this nice package !
More an information than an issue :

It seems that a recent (?) update in dplyr introduced a function named as_label()
If we use both packages we have to prefix the function with the package name.

Therefore some code in the vignette has failed :
https://cran.r-project.org/web/packages/sjlabelled/vignettes/labelleddata.html
e. g. in § Adding value labels as factor values

  table(as_label(efc$e42dep),
        as_label(efc$e16sex)), 
  beside = T, 
  legend.text = T
)

index

But the same in
https://strengejacke.github.io/sjlabelled/articles/labelleddata.html is still fine

unnamed-chunk-5-1

Thanks, I hope this issue is fixed now!