1919# ' Plotly to view this graph. You can privately share this graph with other
2020# ' Plotly users in your online Plotly account and they will need to be logged
2121# ' in to view this plot.
22- # ' If 'hidden ', anyone with this hidden link can view this chart. It will
22+ # ' If 'secret ', anyone with this secret link can view this chart. It will
2323# ' not appear in the Plotly feed, your profile, or search engines.
2424# ' If it is embedded inside a webpage or an IPython notebook, anybody who is
2525# ' viewing that page will be able to view the graph.
3636# ' }
3737
3838plotly_POST <- function (x , filename , fileopt = " new" ,
39- sharing = c(" public" , " private" , " hidden " )) {
39+ sharing = c(" public" , " private" , " secret " )) {
4040 x <- plotly_build(x )
4141 x $ filename <- if (! missing(filename )) {
4242 filename
@@ -54,7 +54,7 @@ plotly_POST <- function(x, filename, fileopt = "new",
5454 if (! is.null(x $ world_readable )) {
5555 warning(' world_readable is no longer supported. Instead, set the sharing\n ' ,
5656 ' argument to "private" (you must be logged in to access),\n ' ,
57- ' "hidden " (anybody with the obscured URL can access) or "public"\n ' ,
57+ ' "secret " (anybody with the obscured URL can access) or "public"\n ' ,
5858 ' (anybody can view).' )
5959 }
6060 x $ world_readable <- if (sharing [1 ] == " public" ) TRUE else FALSE
@@ -74,7 +74,7 @@ plotly_POST <- function(x, filename, fileopt = "new",
7474 base_url <- file.path(get_domain(), " clientresp" )
7575 resp <- httr :: POST(base_url , body = bod )
7676 con <- process(append_class(resp , " clientresp" ))
77- if (sharing [1 ] == " hidden " ) {
77+ if (sharing [1 ] == " secret " ) {
7878 bits <- strsplit(con $ url , " /" )[[1 ]]
7979 plot_id <- bits [length(bits )]
8080 url <- file.path(get_domain(" api" ), " v2" , " files" ,
0 commit comments