if (FALSE) {
# Create boot folder
mkdir("boot")
# Create boot script, boot/mydata.R
draft.data.script(name="mydata", title="Title", description="Description",
format="txt", originator="Me", year="2022",
period=c(2000,2020), access="Public",
content='write(pi, file="pi.txt")')
# Create metadata, boot/DATA.bib
taf.roxygenise(files="mydata.R")
# Run boot script, creating boot/data/mydata/pi.txt
taf.boot()
}
Run the code above in your browser using DataLab