### Use a temporary file to write to
tmpFile <- tempfile(fileext = ".pdf");
### Load an example (pre)registration specification
data("examplePrereg_1", package = "preregr");
### Only run this if you have a functional LaTeX installation
if (FALSE) {
preregr::prereg_spec_to_pdf(
examplePrereg_1,
file = tmpFile
);
}
Run the code above in your browser using DataLab