Issue publishing to rpubs

I'm knitting an R script to HTML and it shows up fine in the preview. I go to publish to rpubs via rstudio and rather than a login screen I'm given an html file in my text editor:

<!DOCTYPE html>
<html lang='en'>
<head>
<meta content='IE=edge' http-equiv='X-UA-Compatible'>
<title>RPubs</title>
<meta name="csrf-param" content="authenticity_token" />
<meta name="csrf-token" content="sd8D8m5zqwcAawZ3Ol8okM3ZsjPkyOoPl6T5HIMpHEWZW3np0uWmfwPKv0chJiczxTzi/B2dS1akJz1r+1g3kQ==" />
<link rel="stylesheet" media="all" href="/assets/application-3956e416c438f98e8d8b82b039d6ac6cd5417ad8d51825485256a39737302686.css" />
<script src="/assets/application-050918065a747f23455921e989643a0f9050e5da8573c9858fc4266f0ec88af2.js"></script>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0' name='viewport'>
<link rel="stylesheet" href="https://use.typekit.net/tzi3tjz.css">
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  ga('create', 'UA-20375833-3', 'auto', {'allowLinker': true});
  ga('require', 'linker');
  ga('linker:autoLink', ['rstudio.com', 'rstudio.github.io', 'rviews.rstudio.com', 'community.rstudio.com', 'rpubs.rstudio.com', 'environments.rstudio.com', 'rstudio.org', 'dailies.rstudio.com', 'pages.rstudio.com', 'db.rstudio.com', 'solutions.rstudio.com', 'docs.rstudio.com', 'spark.rstudio.com', 'shiny.rstudio.com', 'education.rstudio.com', 'rstudio.cloud', 'shinyapps.io', 'teamadmin.rstudio.com', 'blog.rstudio.com', 'support.rstudio.com'] );
  ga('send', 'pageview');
</script>

</head>
<body>
<div class='modal' id='login' style='display: none'>
<div class='modal-header'>
<h1>Sign In</h1>
</div>
<div class='modal-body'>
<div class='alert' id='login_message' style='display: none'></div>
<form action="/auth/login" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="&#x2713;" /><input type="hidden" name="authenticity_token" value="bjHypzqErvwIPNy2x5hzTyeJd9xsipWkdcbDFghkO/24+rqKUCGxv2qKIqS0lo+idBP8T4KaEs158OSesow3mg==" />
<input name='return_url' type='hidden' value='/publish/claim/678726/5d27d16e81d248e49c044f0a7c4c1966'>
<div class='fieldset'>
<div class='control-group'>
<label class='control-label' for='login_username'>Username or Email</label>
<div class='controls'>
<input class='input-xlarge' id='login_username' name='username' type='text'>
</div>
</div>
<div class='control-group'>
<label class='control-label' for='login_password'>Password</label>
<div class='controls'>
<input class='input-xlarge' id='login_password' name='password' type='password'>
</div>
</div>
<div class='control-group'>
<a href='/auth/passwordhelp' target='_blank'>Forgot your password?</a>
</div>
</div>
</form>


</div>
<div class='modal-footer'>
<button class='btn btn-primary' id='login-modal-submit'>Sign In</button>
<button class='btn' id='login-modal-cancel'>Cancel</button>
</div>
</div>
<div id='main'>
<div id='pageheader'>
<div id='branding'>
<h1 id='logo'>
<a href='/'><span id='R'>R</span>Pubs
</a>
</h1>
<span id='tagline'>by RStudio</span>
</div>
<div id='identity'>
<div class='btn-group'>
<a class='btn btn-small pull-right' href='#' onclick='rpubs_showLogin(); return false'>
Sign in
</a>
<a class='btn btn-small pull-right' href='/users/new'>
Register
</a>
</div>
</div>
</div>
<div id='pagebody'>
<h1 class='nomarginbottom'>Publish Document &ndash; Step 1 of 2</h1>
<p>First, we need to know who you are.</p>
<div class='row'>
<div class='span7'>
<hr>
</div>
</div>
<div class='row'>
<div class='span3'>
<h4>It's quick and free to sign up.</h4>
</div>
<div class='span4'>
<form action='https://rpubs.com/users/new' method='GET'>
<input name='return_url' type='hidden' value='/publish/claim/678726/5d27d16e81d248e49c044f0a7c4c1966'>
<fieldset>
<div class='control-group'>
<div class='controls'>
<button class='btn' type='submit'>Create an account</button>
</div>
</div>
</fieldset>
</form>
</div>
</div>
<div class='row'>
<div class='span7'>
<hr>
</div>
</div>
<div class='row'>
<div class='span3'>
<h4>Already have an account?</h4>
</div>
<div class='span4'>
<form action="/auth/login" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="&#x2713;" /><input type="hidden" name="authenticity_token" value="iLJmS89PKm1q/aCh8TYdy7cGAmkPI4WC8DGSTT9OLKleeS5mpeo1LghLXrOCOOEm5JyJ+uEzAuv8B7XFhaYgzg==" />
<input name='return_url' type='hidden' value='/publish/claim/678726/5d27d16e81d248e49c044f0a7c4c1966'>
<div class='fieldset'>
<div class='control-group'>
<label class='control-label' for='login_username'>Username or Email</label>
<div class='controls'>
<input class='input-xlarge' id='login_username' name='username' type='text'>
</div>
</div>
<div class='control-group'>
<label class='control-label' for='login_password'>Password</label>
<div class='controls'>
<input class='input-xlarge' id='login_password' name='password' type='password'>
</div>
</div>
<div class='control-group'>
<a href='/auth/passwordhelp' target='_blank'>Forgot your password?</a>
</div>
<div class='control-group'>
<div class='controls'>
<button class='btn btn-primary' type='submit'>Sign in</button>
</div>
</div>
<div class='control-group'>
<div class='controls'>
<p>&nbsp;</p>
<p><a href="/users/new?return_url=%2Fpublish%2Fclaim%2F678726%2F5d27d16e81d248e49c044f0a7c4c1966">Don&#39;t have an account?</a></p>
</div>
</div>
</div>
</form>


</div>
</div>


<div class='clearfix'></div>
</div>
</div>
</body>
</html>

Title of the file says something about a claim. Anybody have an idea what this might be caused by and how to fix it?

I'm working on a pared down unix on a computing cluster, and this is the only place I've run into issues publishing to rpubs.

Edit Nov 5, 2020:

Joe, thanks for the response. I think you are right about the browser configuration. I've managed a workaround by knitting to html on the remote machine, using scp to copy the .html file to my local machine, and uploading the rpub in the typical way via rstudio.

I'll have to take a look into the system config with regards to browsers.

@Bryan_Brick, sorry for the late reply. I think this might be happening because the system you're on isn't configured to launch a browser on utils::browseURL(). (I'm assuming by "text editor" you don't mean the editor in RStudio, but rather the default text editor program on your system?)

If you can't fix the system configuration, you can dig out the relevant URL yourself; in this case, it's /publish/claim/678726/5d27d16e81d248e49c044f0a7c4c1966, just add "https://rpubs.com" to the beginning of that. (You won't be able to claim this specific doc though, I accidentally navigated to that URL while writing this response and since I was already logged into rpubs it automatically claimed it. Sorry about that, I immediately deleted it obviously.)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.