Thanks for sharing the wkhtmltopdf function.
I took a look into it and it looks like it need to install a software to use it or use it in command prompt.
Unless there is an easier way such as placing the code into the R program to use it otherwise is not as efficient. I am also having a difficult time using it to make it work too.
@cderv,
I tried your suggestion pandoc_convert with the below code, I have error message.
Please advise !
Error: pandoc document conversion failed with error 9
rmarkdown::pandoc_convert("f.html", to = "a.pdf")
pandoc_convert("f.html", to = "a.pdf")