# Example export file paths
# NOTE: These tempfiles are only for the examples. In reality you just call the
# main function and put in your desired path and name directly.
temp_file <- tempfile(fileext = ".rstheme")
file_name <- basename(tools::file_path_sans_ext(temp_file))
# Example theme
build_rstheme(file_path = dirname(temp_file),
theme_name = file_name,
editor_background = "#417291",
editor_headline = "#602BCA",
editor_font = "#C75C48")
# Manual cleanup for example
unlink(temp_file)
Run the code above in your browser using DataLab