Pubishing for rpubs existing html file

I am trying to publish rpubs html file created using rmd using knithtml. However, knitting takes too much time, and I donโ€™t want to start the whole knitting process again to make minor changes to the look of the html document.

I canโ€™t find the publish button at the moment when I close the html file and open it again.

+4
source share
2 answers

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 download will return 2 values โ€‹โ€‹in result, which are website addresses. Copy and paste continueUrlinto your browser to complete the download.

Or you can use the function:

browseURL(result$continueUrl)

-, .

: , , , .

+2

Commands- PATH,

setwd("C:/Users/MK10181/Desktop")
result <- rpubsUpload(title='SPC',contentFile='Report.html', originalDoc = 'Report.html')

result
$id
[1] "https://api.rpubs.com/api/v1/document/507696/c26dc92b5fe046488a4bfa8c670dab26"

$continueUrl
[1] "http://rpubs.com/publish/claim/507696/dc025c9952da401db86aef1f0f234734"

browseURL(result$continueUrl)

RPub, .

0

Source: https://habr.com/ru/post/1599347/


All Articles