Skip to content

Commit daf0c35

Browse files
committed
fix R CMD check notes
1 parent 8108b20 commit daf0c35

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

R/layers2traces.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ to_basic.GeomCrossbar <- function(data, prestats_data, layout, params, p, ...) {
532532
prefix_class(to_basic.GeomSegment(middle), "GeomCrossbar")
533533
)
534534
}
535-
utils::globalVariables(c("xmin", "xmax", "y", "size"))
535+
utils::globalVariables(c("xmin", "xmax", "y", "size", "COL", "PANEL", "ROW", "yaxis"))
536536

537537
#' @export
538538
to_basic.GeomRug <- function(data, prestats_data, layout, params, p, ...) {

R/shiny.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ renderPlotly <- function(expr, env = parent.frame(), quoted = FALSE) {
4949
# objects to renderPlotly() (e.g., ggplot2, promises). It also is used
5050
# to inform event_data about what events have been registered
5151
shiny::installExprFunction(expr, "func", env, quoted)
52-
expr <- quote(plotly:::prepareWidget(func()))
52+
expr <- quote(getFromNamespace("prepareWidget", "plotly")(func()))
5353
local_env <- environment()
5454
renderFunc <- shinyRenderWidget(expr, plotlyOutput, local_env, quoted)
5555
# remove 'internal' plotly attributes that are known to cause false

0 commit comments

Comments
 (0)