I am trying to publish to Rpubs a .html
file generated from a .Rmd
using knithtml.
However, the knitting takes too long to run and I would not want to rerun the whole knit process again just to make minor changes to the appearance of the HTML document.
I cannot seem to find the publish button once I close the HTML file preview window when I try to reopen it.
Install the package markdown
then you can try the code:
result <- rpubsUpload(title='Your title', htmlFile='your_html_file_and_path.html', method=getOption('rpubs.upload.method','auto'))
A successful upload would return 2 values in result
, which are ID and a website address. Copy and paste the continueUrl
into your browser to complete the upload. Save the ID for future updates of the same document in RPubs.
Or you can use the function:
browseURL(result$continueUrl)
to go straight the webpage using the default browser.
Note that I am sure there is an automated way of uploading without using the browser but this is the only way I know right now.