Create PDF Help Files Automatically

In R, if we set the help_typefunction argument help()to htmland call it, it will automatically open the html help in the browser. However, this does not apply help_type = 'pdf'. Only PDF is created. How can I do this automatically after creating a help file? I believe that help in pdf format is preferable to some, since it can display the mathematical formula correctly, html help dont.

+3
source share
1 answer

Based on aL3xa comment on Windows, you can use shell.execto view pdf.

help("plot", help_type="pdf") # help file is saved in working directory
shell.exec(file.path(getwd(), "plot.pdf"))
+3
source

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


All Articles