Updates the version number in the YAML section of a protocol index.Rmd file and optionally in protocol NEWS.md
Source: R/update_version_number.R
update_version_number.RdMakes use of get_version_number to get a new version number
and changes this accordingly in the YAML section of index.Rmd file and
optionally in NEWS.md.
Arguments
- protocol_code
The protocol_code corresponding with the name of the branch that contains the new or updated protocol.
- commit
Logical. Default TRUE. Whether or not to add and commit the changes to the protocol branch
- update_news
Logical. Default TRUE. Whether or not to find and replace old version number by new version number in the
NEWS.mdheading 2.- path
Default is current working directory. Should correspond with root directory of
protocolsourcerepo.
See also
Other creation:
add_dependencies(),
add_one_subprotocol(),
add_subprotocols(),
create_protocol(),
insert_protocolsection(),
update_protocol()