powered by
Style a file
style_file(file, configuration = list())
(logical) whether the file was formatted successfully or skipped. TRUE - formatted successfully, FALSE - skipped.
logical
TRUE
FALSE
(character) path to the file to format.
character
(list) Configuration for formatting. Default list().
list
list()
To see possible configuration options, see get_default_config().
get_default_config()
tmp <- tempfile() file_conn <- file(tmp) writeLines(c("function(){}", "A<-7"), file_conn) close(file_conn) style_file(file = tmp, configuration = list()) unlink(tmp)
Run the code above in your browser using DataLab