File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ Imports:
30
30
jsonlite,
31
31
magrittr,
32
32
digest,
33
- viridis
33
+ viridis,
34
+ base64enc
34
35
Suggests:
35
36
dplyr,
36
37
maps,
Original file line number Diff line number Diff line change @@ -154,13 +154,14 @@ get_kwargs <- function() {
154
154
}
155
155
156
156
# POST header fields
157
+ # ' @importFrom base64enc base64encode
157
158
plotly_headers <- function (type = " main" ) {
158
159
usr <- verify(" username" )
159
160
key <- verify(" api_key" )
160
161
h <- if (type == " v2" ) {
161
162
c(
162
- " Plotly-Username " = base64enc :: base64encode(charToRaw(usr )),
163
- " Plotly-Apikey " = base64enc :: base64encode(charToRaw(key )),
163
+ " plotly-username " = base64enc :: base64encode(charToRaw(usr )),
164
+ " plotly-apikey " = base64enc :: base64encode(charToRaw(key )),
164
165
" Plotly-Client-Platform" = paste(" R" , as.character(packageVersion(" plotly" )))
165
166
)
166
167
} else {
You can’t perform that action at this time.
0 commit comments