A class containing a single organisation
See also
Other class:
checklist,
citation_meta,
org_list,
organisation,
spelling
Active bindings
as_listThe organisation as a list.
get_zenodoThe organisation Zenodo community.
get_default_nameThe organisation default name.
get_emailThe organisation email.
get_funderThe funder rules.
get_nameThe organisation names.
get_orcidThe ORCID rules.
get_rightsholderThe rightsholder rules.
Methods
Method new()
Initialize a new org_item object.
Usage
org_item$new(
name,
email,
orcid = FALSE,
rightsholder = c("optional", "single", "shared", "when no other"),
funder = c("optional", "single", "shared", "when no other"),
license = list(package = c(`GPL-3.0` =
paste("https://raw.githubusercontent.com/inbo/checklist/refs/heads/main",
"inst/generic_template/gplv3.md", sep = "/"), MIT =
paste("https://raw.githubusercontent.com/inbo/checklist/refs/heads/main",
"inst/generic_template/mit.md", sep = "/")), project = c(`CC BY 4.0` =
paste("https://raw.githubusercontent.com/inbo/checklist/refs/heads/main",
"inst/generic_template/cc_by_4_0.md", sep = "/")), data = c(CC0 =
paste("https://raw.githubusercontent.com/inbo/checklist",
"131fe5829907079795533bfea767bf7df50c3cfd/inst/generic_template",
"cc0.md", sep
= "/"))),
ror = "",
zenodo = "",
website = "",
logo = ""
)Arguments
nameA named vector with the organisation names in one or more languages. The first item in the vector is the default language. The names of the vector must match the language code.
emailAn email address for the organisation. Used to contact the organisation. And used to detect if a person is affiliated with the organisation.
orcidWhether the organisation requires an ORCID for every person that uses this organisation as affiliation.
rightsholderThe required copyright holder status for the organisation.
"optional"means that the organisation is not required as the copyright holder."single"means that the organisation must be the only copyright holder."shared"means that the organisation must be one of the copyright holders."when no other"means that if no other copyright holder is specified, the organisation must be the copyright holder.funderThe required funder status for the organisation. The categories are the same as for
rightsholder.licenseA list with the allowed licenses by the organisation. The list may contain the following items:
package,project, anddata. Every item must be a named character vector with the allowed licenses. The names must match the license name. The values must either match the path to a license template in thechecklistpackage or an absolute URL to publicly available markdown file with the license text. Usecharacter(0)to indicate that the organisation does not require a specific license for that item.packagedefaults toc("GPL-3.0", "MIT").projectdefaults to"CC BY 4.0".datadefaults to"CC0 1.0".rorThe optional ROR ID of the organisation.
zenodoThe optional Zenodo community ID of the organisation.
websiteThe optional website URL of the organisation.
logoThe optional logo URL of the organisation.
Method compare_by_name()
Compares the number of matching words with the organisation
name.
Either Inf when there is a perfect match.
Otherwise a number between 0 and 1 indicating the ratio of the matching
words with the total number of words in name.
A value of 1 means that all words in name are present in one of the
organisation names but in a different order.
Method get_license()
Get the organisation license.
Usage
org_item$get_license(type = c("package", "project", "data", "all"))