Generating Webs with R - Knit Package

Generating Webs with R - Knit Package

September 25, 2020

Lately I found the knitr package on R bloggers and interestingly, there are people who use R directly to create updated figures on their websites, including their latest data discovieries.

You can find a great documentation here for Knitr:

Create Dynamic Documents with R and KnitR

Install and use KnitR

Install it with:

install.packages('knitr')

And once your Rmd document is ready, you have to simply execute the following:

#knitt the specified file on its current folder to test its view
rmarkdown::render('YourFile.Rmd',
                  output_file = paste('index', 
                                      '.html', sep=''))

After executing this, a new file index.html will be created - This is your new Static Site.