xg_linkify | R Documentation |
Things that make an unpacked xlsx less awful to navigate in the browser:
Each directory has index.html
, listing links to files/subdirectories
Links to subdirectories link to the associated index.html
XML files that do not have .xml
as file extension are copied to a file
having the same name, but with the extension .XML
added and this is what
is linked.
xg_linkify(path)
xg_de_linkify(path)
path |
Path to a directory corresponding to a single, unpacked xlsx,
i.e. the output of |
xg_linkify()
does the above and xg_de_linkify()
undoes it.
file.copy(xg_example("datasets"), "datasets.xlsx")
res <- "datasets.xlsx" %>%
xg_unzip() %>%
xg_linkify()
xg_browse(res)
xg_de_linkify("datasets")
## clean up
unlink("datasets", recursive = TRUE)
file.remove("datasets.xlsx")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.