renderTable: Render HTML Table in R Markdown with Data from Web
Description
This function is expected to work with getable's R Markdown
template, which contains an .html file, a .js file,
and a .css file in addition to the .Rmd source file.
The function creates an HTML string and insert it into the HTML file
rendered from Rmd. The code in the .js file then process the
HTML string and retrieve data from web to create an HTML table dynamically
when users view the rendered HTML file in the browser (a server is needed to
served the file).
A string. The URL to the source data of the table to be
created. Could be a relative path (relative to the .Rmd src
file) or an URL to a JSON or CSV file. url could also be an URL
to a publicly viewable Google Spreadsheet. Defaults to ./data/df.csv
(see the template's structure).
isjson
Boolean. Whether the format of the self-hosted file is
json. Defaults to FALSE. Works only when the data is self-hosted
(i.e. not from Google Spreadsheet).