To write the usethis.R file to data-raw, the data.R file to R, and run devtools::document(), see document_data.

write_usethis_file(path)