Skip to content

Commit 94011cb

Browse files
committed
Resolve conflicts
Merge branch 'master' of https://github.com/ropensci/plotly into ropensci-master # Conflicts: # DESCRIPTION # R/sysdata.rda # inst/docker/Dockerfile.vtest # inst/htmlwidgets/lib/plotlyjs/plotly-latest.min.js
2 parents 3989267 + e741959 commit 94011cb

File tree

221 files changed

+1079
-639
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

221 files changed

+1079
-639
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ rsconnect/
1717
revdep/
1818
travis_debug.R
1919
.httr-oauth
20+
tests/testthat/Rplots.pdf
21+
inst/examples/shiny/event_data/tests/shinytest/mytest-current/

DESCRIPTION

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Authors@R: c(person("Carson", "Sievert", role = c("aut", "cre"),
1515
email = "[email protected]", comment = c(ORCID = "0000-0002-1994-3581")),
1616
person("Pedro", "Despouy", role = "aut",
1717
email = "[email protected]"),
18+
person("Salim", "Brüggemann", role = "ctb",
19+
email = "[email protected]", comment = c(ORCID = "0000-0002-5329-5987")),
1820
person("Plotly Technologies Inc.", role = "cph"))
1921
License: MIT + file LICENSE
2022
Description: Create interactive web graphics from 'ggplot2' graphs and/or a custom interface to the (MIT-licensed) JavaScript library 'plotly.js' inspired by the grammar of graphics.
@@ -33,11 +35,11 @@ Imports:
3335
viridisLite,
3436
base64enc,
3537
htmltools (>= 0.3.6),
36-
htmlwidgets (>= 1.3),
38+
htmlwidgets (>= 1.5.2.9001),
3739
tidyr,
38-
hexbin,
3940
RColorBrewer,
4041
dplyr,
42+
vctrs,
4143
tibble,
4244
lazyeval (>= 0.2.0),
4345
rlang,
@@ -48,6 +50,7 @@ Imports:
4850
Suggests:
4951
MASS,
5052
maps,
53+
hexbin,
5154
ggthemes,
5255
GGally,
5356
testthat,
@@ -70,12 +73,13 @@ Suggests:
7073
IRdisplay,
7174
processx,
7275
plotlyGeoAssets,
73-
forcats
76+
forcats,
77+
thematic,
78+
palmerpenguins
7479
LazyData: true
75-
<<<<<<< HEAD
76-
RoxygenNote: 7.0.2
77-
=======
78-
RoxygenNote: 7.1.0
79-
>>>>>>> c19594b1fb54b28952895344fec3ad0060a1c646
80+
RoxygenNote: 7.1.1
8081
Encoding: UTF-8
8182
Roxygen: list(markdown = TRUE)
83+
Remotes:
84+
rstudio/thematic,
85+
Displayr/htmlwidgets

NAMESPACE

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
S3method(api_create,data.frame)
44
S3method(api_create,ggplot)
55
S3method(api_create,plotly)
6-
S3method(arrange_,plotly)
7-
S3method(distinct_,plotly)
8-
S3method(do_,plotly)
96
S3method(embed_notebook,plotly)
10-
S3method(filter_,plotly)
117
S3method(fortify,SharedData)
128
S3method(geom2trace,GeomBar)
139
S3method(geom2trace,GeomBlank)
@@ -25,12 +21,11 @@ S3method(ggplotly,"NULL")
2521
S3method(ggplotly,ggmatrix)
2622
S3method(ggplotly,ggplot)
2723
S3method(ggplotly,plotly)
28-
S3method(group_by_,plotly)
29-
S3method(groups,plotly)
24+
S3method(highlight_key,default)
25+
S3method(highlight_key,plotly)
3026
S3method(layout,matrix)
3127
S3method(layout,plotly)
3228
S3method(layout,shiny.tag.list)
33-
S3method(mutate_,plotly)
3429
S3method(plotly_build,"NULL")
3530
S3method(plotly_build,gg)
3631
S3method(plotly_build,list)
@@ -40,10 +35,6 @@ S3method(print,api_grid)
4035
S3method(print,api_grid_local)
4136
S3method(print,api_plot)
4237
S3method(print,plotly_data)
43-
S3method(rename_,plotly)
44-
S3method(select_,plotly)
45-
S3method(slice_,plotly)
46-
S3method(summarise_,plotly)
4738
S3method(to_basic,GeomAbline)
4839
S3method(to_basic,GeomAnnotationMap)
4940
S3method(to_basic,GeomArea)
@@ -78,8 +69,6 @@ S3method(to_basic,GeomTile)
7869
S3method(to_basic,GeomViolin)
7970
S3method(to_basic,GeomVline)
8071
S3method(to_basic,default)
81-
S3method(transmute_,plotly)
82-
S3method(ungroup,plotly)
8372
export("%>%")
8473
export(TeX)
8574
export(add_annotations)
@@ -259,6 +248,8 @@ importFrom(lazyeval,is_formula)
259248
importFrom(lazyeval,is_lang)
260249
importFrom(magrittr,"%>%")
261250
importFrom(purrr,transpose)
251+
importFrom(rlang,"!!!")
252+
importFrom(rlang,"!!")
262253
importFrom(rlang,eval_tidy)
263254
importFrom(stats,complete.cases)
264255
importFrom(stats,is.leaf)

NEWS.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,32 @@ This is minor patch release with a few minor bug fixes and updates test expectat
4040

4141
## Changes to plotly.js
4242

43-
* This version of the R package upgrades the version of the underlying plotly.js library from v1.52.2 to v1.54.1. This includes many bug fixes and improvements. The [plotly.js release page](https://github.com/plotly/plotly.js/releases) has the full list of changes.
43+
* This version of the R package upgrades the version of the underlying plotly.js library from v1.52.2 to v1.57.1. This includes many bug fixes and improvements. The [plotly.js release page](https://github.com/plotly/plotly.js/releases) has the full list of changes.
44+
45+
## NEW FEATURES
46+
47+
* `renderPlotly()` now works well with `shiny::bindCache()`, meaning that plotly graphs can now be persistently cached in Shiny apps with `renderPlotly(expr) %>% shiny::bindCache()` (#1879).
48+
49+
* `ggplotly()` now works well with the [**thematic** package](https://rstudio.github.io/thematic). That is, it can now correctly translate **ggplot2** styling that derives from **thematic**. Note that, in order to use **thematic**'s auto theming in Shiny with `ggplotly()`, you need **shiny** v1.5.0 (or higher) and **htmlwidgets** v1.5.2.9000 (or higher). Relatedly, if these versions are available, one may now also call `getCurrentOutputInfo()` inside `renderPlotly()` to get CSS styles of the output container (#1801 and #1802).
4450

4551
## IMPROVEMENTS
4652

47-
* All HTTP requests are now retried upon failure (#1656)
53+
* All HTTP requests are now retried upon failure (#1656, @jameslamb).
54+
55+
* R linebreaks (`\n`) in _factor labels_ are now translated to HTML linebreaks (`<br />`), too. Before, this conversion was only done for colums of type character. ([#1700](https://github.com/ropensci/plotly/pull/1700), @salim-b).
4856

4957
## BUG FIXES
5058

59+
* When R's `POSIXt` class is serialized to JSON, the time of day is now correctly preserved (in plotly.js expected `'yyyy-mm-dd HH:MM:SS.ssssss'` format). This should fix a whole host of issues where date-times were being rounded. (#1871, @FlukeAndFeather).
60+
61+
* `ggplotly()` now handles discrete axes of a `facet_wrap` and `facet_grid` correctly when there is only one category in panels > 1 (#1577 and #1720).
62+
63+
* `ggplotly()` now correctly accounts for linebreaks in tick label text when computing plot margins (#1791, @trekonom).
64+
5165
* `ggplotly()` now handles `element_blank()` and `factor()` labels in positional scales correctly (#1731 and #1772).
5266

67+
* `ggplotly()` now handles missing `y` aesthetic in `geom_errorbar()` (#1779, @trekonom).
68+
5369
# 4.9.2.1
5470

5571
This is minor patch release with a few minor bug fixes and updates test expectations in anticipation of new R 4.0 defaults.

R/add.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ add_sf <- function(p, ..., x = ~x, y = ~y, data = NULL, inherit = TRUE) {
334334
y = y,
335335
`_bbox` = bbox,
336336
set = set,
337-
data = if ("group" %in% names(d[[i]])) group_by_(d[[i]], "group", add = TRUE) else d[[i]],
337+
data = if ("group" %in% names(d[[i]])) group_by_add(d[[i]], !!rlang::sym("group")) else d[[i]],
338338
inherit = inherit
339339
)
340340
args <- modify_list(args, attrs)

0 commit comments

Comments
 (0)