I have an R script I knitted and want to publish to Rpubs. I click on the publish icon, then select Rpubs, but nothing happens when I click 'Publish'
I also tried to publish to Posit Cloud. I created credentials, named `MyPositCloud'. Then tried to setup authentication via
> rsconnect::setAccountInfo("MyPositCloud", token = "*****************B5E1A9A", secret = "**************8fjyV7Or0E", server = "posit.cloud")
Error in `GET()`:
! <https://api.posit.cloud/v1/users/current/> failed with HTTP status 401
invalid token
Run `rlang::last_trace()` to see where the error occurred.
Why doesn't Rpubs work? Is there a command line alternative?
What is wrong with how I'm trying to authenticate to Posit Cloud?
I also tried using rpubsUpload() directly and get an error:
rsconnect::rpubsUpload("Coefficient plots for linear models", "examples/coefplots-demo.html", originalDoc = "examples/coefplots-demo.R")
$error
[1] "<html>\r\n<head><title>502 Bad Gateway</title></head>\r\n<body>\r\n<center><h1>502 Bad Gateway</h1></center>\r\n</body>\r\n</html>\r\n"