{"action":"created","issue":{"url":"https://api.github.com/repos/ropensci/plotly/issues/444","repository_url":"https://api.github.com/repos/ropensci/plotly","labels_url":"https://api.github.com/repos/ropensci/plotly/issues/444/labels{/name}","comments_url":"https://api.github.com/repos/ropensci/plotly/issues/444/comments","events_url":"https://api.github.com/repos/ropensci/plotly/issues/444/events","html_url":"https://github.com/ropensci/plotly/issues/444","id":130298014,"number":444,"title":"When using enterprise version the \"save and edit plot in the cloud\" should default to the enterprise domain","user":{"login":"lucacerone","id":754360,"avatar_url":"https://avatars.githubusercontent.com/u/754360?v=3","gravatar_id":"","url":"https://api.github.com/users/lucacerone","html_url":"https://github.com/lucacerone","followers_url":"https://api.github.com/users/lucacerone/followers","following_url":"https://api.github.com/users/lucacerone/following{/other_user}","gists_url":"https://api.github.com/users/lucacerone/gists{/gist_id}","starred_url":"https://api.github.com/users/lucacerone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucacerone/subscriptions","organizations_url":"https://api.github.com/users/lucacerone/orgs","repos_url":"https://api.github.com/users/lucacerone/repos","events_url":"https://api.github.com/users/lucacerone/events{/privacy}","received_events_url":"https://api.github.com/users/lucacerone/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-02-01T08:45:16Z","updated_at":"2016-02-08T12:54:29Z","closed_at":"2016-02-02T16:37:23Z","body":"In my company we are running a trial using Plotly Enterprise version.\r\n\r\nI have created some HTML reports using Rmarkdown and plotly. They look very nice but they show a button \"save and edit plot in the cloud\" to share data through plot.ly website. I think in an enterprise environment the default behaviour should be to share plots through the company version of plotly, not on the public one (to avoid potential sharing of confidential data).\r\n\r\nOther things I was looking for related to this which I couldn't find:\r\n1. disable the \"save and edit plot in the cloud\" (it would be great if it can be set as a variable to be applied always, like tokens, username etc)\r\n2. choose the domain where the \"save and edit plot\" button should share the data\r\n\r\nThey are probably not bugs, but I think they would make great enhancements for the enterprise version."},"comment":{"url":"https://api.github.com/repos/ropensci/plotly/issues/comments/181355013","html_url":"https://github.com/ropensci/plotly/issues/444#issuecomment-181355013","issue_url":"https://api.github.com/repos/ropensci/plotly/issues/444","id":181355013,"user":{"login":"lucacerone","id":754360,"avatar_url":"https://avatars.githubusercontent.com/u/754360?v=3","gravatar_id":"","url":"https://api.github.com/users/lucacerone","html_url":"https://github.com/lucacerone","followers_url":"https://api.github.com/users/lucacerone/followers","following_url":"https://api.github.com/users/lucacerone/following{/other_user}","gists_url":"https://api.github.com/users/lucacerone/gists{/gist_id}","starred_url":"https://api.github.com/users/lucacerone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucacerone/subscriptions","organizations_url":"https://api.github.com/users/lucacerone/orgs","repos_url":"https://api.github.com/users/lucacerone/repos","events_url":"https://api.github.com/users/lucacerone/events{/privacy}","received_events_url":"https://api.github.com/users/lucacerone/received_events","type":"User","site_admin":false},"created_at":"2016-02-08T12:54:29Z","updated_at":"2016-02-08T12:54:29Z","body":"Hi, sorry for the late reply.\r\n\r\nI have just finished installing the latest version v2.4.1 but unfortunately plotly_POST still does not work.\r\n\r\nIn my .Rprofile file I have added:\r\n\r\n```\r\nSys.setenv(\"plotly_domain\"=\"https://plotly.sub.domain.com\")\r\nSys.setenv(\"plotly_api_domain\"=\"https://api-plotly.sub.domain.com\")\r\nSys.setenv(\"plotly_username\"=\"my_username\")\r\nSys.setenv(\"plotly_api_key\"=\"the_api_key\")\r\n```\r\n\r\nI then started R (all the environment variables are set and accessible using Sys.getenv(\"plotly_username\") etc etc)\r\n\r\nI try to follow the very simple example at https://plot.ly/r/ (Run Locally or Publish on the Web):\r\n\r\n```\r\nlibrary(plotly)\r\np <- plot_ly(midwest, x = percollege, color = state, type = \"box\")\r\n# plotly_POST publishes the figure to your plotly account on the web\r\nplotly_POST(p, filename = \"r-docs/midwest-boxplots\", sharing = \"public\" )\r\n```\r\n(by the way the examples on the web are not update to the new `sharing` parameter)\r\n\r\nand I get the following message:\r\n\r\n```\r\nNo encoding supplied: defaulting to UTF-8.\r\nAw, snap! We don't have an account for 'luca.cerone'. Want to try again? You can authenticate with your email address or username. Sign in is not case sensitive.\r\n\r\nDon't have an account? plot.ly\r\n\r\nQuestions? support@plot.lyFALSE\r\nSuccess! Created a new plotly here -> \r\nError in utils::browseURL(x$url) : \r\n  'url' must be a non-empty character string\r\n```\r\n"}}