Skip to content

Commit

Permalink
ugly workaround; sorry Daniel
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Aug 17, 2021
1 parent e24d6d6 commit c0d3b09
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CRAN-RELEASE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
This package was submitted to CRAN on 2021-08-17.
Once it is accepted, delete this file and tag the release (commit 9a13e6e).
Once it is accepted, delete this file and tag the release (commit e24d6d6).
8 changes: 8 additions & 0 deletions R/visualisation_recipe.R
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,11 @@ plot.visualisation_recipe <- function(x, ...) {
ggplot2::ggplot(data = attributes(x)$data) +
geoms_from_list(x, ...)
}


# TODO: remove once see 0.6.5 is on CRAN
utils::globalVariables(
names = c("geoms_from_list"),
package = "datawizard",
add = FALSE
)

2 comments on commit c0d3b09

@bwiernik
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't work.

lm(mpg ~ hp, data = mtcars) |> modelbased::estimate_prediction() |> plot()
#> Error in geoms_from_list(x, ...): could not find function "geoms_from_list"

Created on 2021-08-21 by the reprex package (v2.0.0)

@bwiernik
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plot.visualization_recipe() fails now.

Please sign in to comment.