ekstroem / dataReporter

85 stars 4 forks source link

Deprecated usage of `aes_string()` from {ggplot2} #9

Closed fkohrt closed 1 year ago

fkohrt commented 1 year ago

When using dataReporter::makeDataReport(), I get a deprecation error. For example, when running the following code:

withr::with_options(list(lifecycle_verbosity = "error",
                         warn = 2), {
  dataReporter::makeDataReport(
    attitude,
    output = "html",
    file = "report.Rmd"
  )
})

I get the following error:

Data report generation is finished. Please wait while your output file is being rendered.
Quitting from lines 107-111 (report.Rmd) 
Error:
! `aes_string()` was deprecated in ggplot2 3.0.0.
ℹ Please use tidy evaluation ideoms with `aes()`
Backtrace:
 1. dataReporter:::ggAggHist(...)
 4. ggplot2::aes_string(...)
 5. ggplot2:::deprecate_soft0("3.0.0", "aes_string()", details = "Please use tidy evaluation ideoms with `aes()`")
 6. lifecycle::deprecate_soft(..., user_env = user_env)
 7. lifecycle:::deprecate_stop0(msg)

Same for dataReporter::makeCodebook():

withr::with_options(list(lifecycle_verbosity = "error",
                         warn = 2), {
  dataReporter::makeCodebook(
    attitude,
    output = "html",
    file = "codebook.Rmd"
  )
})
ekstroem commented 1 year ago

Thanks.

Should be fixed in the recent update. Please check.

fkohrt commented 1 year ago

Indeed, thanks!