The authors in the YAML of manuscript.qmd are the copyright holders of
the project: this writes them into the copyright line of LICENSE-CODE.txt
(MIT) and into the licence notice of README.md, between its
<!-- license:start --> and <!-- license:end --> markers. LICENSE.txt (CC
BY 4.0) is the official text and is never touched. Every render does this
on its own; it can be run as many times as you like.
Arguments
- year
The year of the copyright line. This year by default.
- quiet
TRUEsays nothing.- path
The project, or any folder inside it. Left out, the one
set_paper()named; with none named, this stops before writing: it writes into the project, and easypaper never takes the working directory for it.
See also
sync_metadata(), which does the same for the data deposit.
Examples
dir <- file.path(tempdir(), "my_paper")
create_paper(dir, authors = c("Ada Lovelace", "Alan Turing"), git = FALSE)
#> Project created: /tmp/Rtmp92gqjt/my_paper
#> 1. open my_paper.Rproj
#> 2. library(easypaper)
#> 3. set_paper(".") # the project to work on, once a session
#> 4. render_html() # see ?render for every command
sync_licenses(path = dir)
#> Copyright holders: Ada Lovelace & Alan Turing (2026)
readLines(file.path(dir, "LICENSE-CODE.txt"), n = 3)
#> [1] "MIT License"
#> [2] ""
#> [3] "Copyright (c) 2026 Ada Lovelace & Alan Turing"
unlink(dir, recursive = TRUE)
