Skip to content

Commit

Permalink
Update note_in_html.R
Browse files Browse the repository at this point in the history
  • Loading branch information
jienagu committed Apr 22, 2019
1 parent a12aa84 commit 6a3e065
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/note_in_html.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ note_in_html=function(input){
f2 = tempfile()

f1 <- tempfile()
writeLines(input, f1)
writeLines(input, f1, useBytes = T)

## convert input to html
rmarkdown::pandoc_convert(f1, to = 'html', from = 'markdown', output = f2)
## read results
res <-readLines(f2)
res <-readLines(f2, encoding = 'UTF-8')
paste(res, collapse = '\n')
}

0 comments on commit 6a3e065

Please sign in to comment.