File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,6 @@ Suggests:
7070 IRdisplay,
7171 processx,
7272 plotlyGeoAssets,
73- rstudioapi,
7473 forcats
7574LazyData: true
7675RoxygenNote: 6.0.1.9000
Original file line number Diff line number Diff line change @@ -1063,14 +1063,7 @@ try_library <- function(pkg, fun = NULL) {
10631063 " Please install and try again." , call. = FALSE )
10641064}
10651065
1066+ # similar logic to rstudioapi::isAvailable()
10661067is_rstudio <- function () {
1067- requireNamespace(' rstudioapi' , quietly = TRUE ) && rstudioapi :: isAvailable()
1068- }
1069-
1070-
1071- # TODO: warn Windows users to use 1.2.x in some scenarios?
1072- # https://github.com/ropensci/plotly/issues/1211
1073- rstudio_version <- function () {
1074- if (! is_rstudio()) return (NA )
1075- rstudioapi :: versionInfo()$ version
1068+ identical(.Platform $ GUI , " RStudio" )
10761069}
You can’t perform that action at this time.
0 commit comments