##' @export
df2tex <- function(df,outfile,...){
tempfile(fileext = '.xlsx') ->
temp
wb <- createWorkbook()
addWorksheet(wb,'sheet')
writeData(
wb,
'sheet',
df)
saveWorkbook(wb,
file = temp,
overwrite = TRUE)
excel2tex(file = temp,
outfile = outfile,
sheet = 'sheet',...) ->
out
unlink(temp)
return(out)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.