if (tolower(Sys.getenv('CI')) == 'true') {
f = list.files(R.home("doc"), full.names = TRUE)
mime_type(f)
mime_type(f, FALSE) # don't use mime
mime_type(f, FALSE, NA) # run command for files without extension
}
Run the code above in your browser using DataLab