pub struct RDescription(/* private fields */);
Expand description
R DESCRIPTION file
Implementations§
Source§impl RDescription
impl RDescription
Sourcepub fn set_package(&mut self, package: &str)
pub fn set_package(&mut self, package: &str)
Set the package name
Sourcepub fn title(&self) -> Option<String>
pub fn title(&self) -> Option<String>
One line description of the package, and is often shown in a package listing
It should be plain text (no markup), capitalised like a title, and NOT end in a period. Keep it short: listings will often truncate the title to 65 characters.
Sourcepub fn maintainer(&self) -> Option<String>
pub fn maintainer(&self) -> Option<String>
Return the maintainer of the package
Sourcepub fn set_maintainer(&mut self, maintainer: &str)
pub fn set_maintainer(&mut self, maintainer: &str)
Set the maintainer of the package
Return the authors of the package
Set the authors of the package
Sourcepub fn description(&self) -> Option<String>
pub fn description(&self) -> Option<String>
Return the description of the package
Sourcepub fn set_description(&mut self, description: &str)
pub fn set_description(&mut self, description: &str)
Set the description of the package
Sourcepub fn set_version(&mut self, version: &str)
pub fn set_version(&mut self, version: &str)
Set the version of the package
Sourcepub fn set_encoding(&mut self, encoding: &str)
pub fn set_encoding(&mut self, encoding: &str)
Set the encoding of the description file
Sourcepub fn set_license(&mut self, license: &str)
pub fn set_license(&mut self, license: &str)
Set the license of the package
Sourcepub fn roxygen_note(&self) -> Option<String>
pub fn roxygen_note(&self) -> Option<String>
Return the roxygen note
Sourcepub fn set_roxygen_note(&mut self, roxygen_note: &str)
pub fn set_roxygen_note(&mut self, roxygen_note: &str)
Set the roxygen note
Sourcepub fn set_roxygen(&mut self, roxygen: &str)
pub fn set_roxygen(&mut self, roxygen: &str)
Set the roxygen version
Sourcepub fn bug_reports(&self) -> Option<Url>
pub fn bug_reports(&self) -> Option<Url>
Return the bug reports URL
Sourcepub fn set_bug_reports(&mut self, bug_reports: &Url)
pub fn set_bug_reports(&mut self, bug_reports: &Url)
Set the bug reports URL
Sourcepub fn set_imports(&mut self, imports: &[&str])
pub fn set_imports(&mut self, imports: &[&str])
Set the imports field
Sourcepub fn set_suggests(&mut self, suggests: Relations)
pub fn set_suggests(&mut self, suggests: Relations)
Set the suggests field
Sourcepub fn set_depends(&mut self, depends: Relations)
pub fn set_depends(&mut self, depends: Relations)
Set the depends field
Sourcepub fn linking_to(&self) -> Option<Vec<String>>
pub fn linking_to(&self) -> Option<Vec<String>>
Return the linking-to field
Sourcepub fn set_linking_to(&mut self, linking_to: &[&str])
pub fn set_linking_to(&mut self, linking_to: &[&str])
Set the linking-to field
Sourcepub fn set_lazy_data(&mut self, lazy_data: bool)
pub fn set_lazy_data(&mut self, lazy_data: bool)
Set the lazy data field
Sourcepub fn set_collate(&mut self, collate: &str)
pub fn set_collate(&mut self, collate: &str)
Set the collate field
Sourcepub fn vignette_builder(&self) -> Option<Vec<String>>
pub fn vignette_builder(&self) -> Option<Vec<String>>
Return the vignette builder field
Sourcepub fn set_vignette_builder(&mut self, vignette_builder: &[&str])
pub fn set_vignette_builder(&mut self, vignette_builder: &[&str])
Set the vignette builder field
Sourcepub fn system_requirements(&self) -> Option<Vec<String>>
pub fn system_requirements(&self) -> Option<Vec<String>>
Return the system requirements field
Sourcepub fn set_system_requirements(&mut self, system_requirements: &[&str])
pub fn set_system_requirements(&mut self, system_requirements: &[&str])
Set the system requirements field
Sourcepub fn repository(&self) -> Option<String>
pub fn repository(&self) -> Option<String>
The R Repository to use for this package.
E.g. “CRAN” or “Bioconductor”
Sourcepub fn set_repository(&mut self, repository: &str)
pub fn set_repository(&mut self, repository: &str)
Set the R Repository to use for this package.