Publish existing html to Rpubs - statnet/computing GitHub Wiki
Typically we publish html reports to Rpubs right after knitting them, using the publish/republish button that appears in the immediately rendered document popup. But that button is not available when re-opening the html document later. If you can't, or don't want to re-knit to get the popup, you can publish existing html using the method below:
setwd("folder.with.htmlfile")
result <- markdown::rpubsUpload(title='my.title',
htmlFile='html.file.you.want.to.upload')
browseURL(result$continueUrl)