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:
70
70
IRdisplay,
71
71
processx,
72
72
plotlyGeoAssets,
73
- rstudioapi,
74
73
forcats
75
74
LazyData: true
76
75
RoxygenNote: 6.0.1.9000
Original file line number Diff line number Diff line change @@ -1063,14 +1063,7 @@ try_library <- function(pkg, fun = NULL) {
1063
1063
" Please install and try again." , call. = FALSE )
1064
1064
}
1065
1065
1066
+ # similar logic to rstudioapi::isAvailable()
1066
1067
is_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" )
1076
1069
}
You can’t perform that action at this time.
0 commit comments