# NOT RUN {
## Save reactable table as a png file:
iris_table <- reactable(iris)
save_reactable(iris_table, "iris_table.png")
## Also works with a pipe
iris_table %>%
save_reactable("iris_table.png")
## Or save as an html file:
save_reactable(iris_table, "iris_table.html")
## If the reactable table was built in R Markdown with CSS styles applied,
## specify .Rmd file as input and save_reactable will run the file
## and save the output as an image
save_reactable("iris_table.Rmd", "iris_table.png")
## Alternatively, can do the same with an .html file
save_reactable("iris_table.html", "iris_table.png")
# }
Run the code above in your browser using DataLab