RDescription

Struct RDescription 

Source
pub struct RDescription(/* private fields */);
Expand description

R DESCRIPTION file

Implementations§

Source§

impl RDescription

Source

pub fn new() -> Self

Create a new empty R DESCRIPTION file

Source

pub fn package(&self) -> Option<String>

Return the package name

Source

pub fn set_package(&mut self, package: &str)

Set the package name

Source

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.

Source

pub fn maintainer(&self) -> Option<String>

Return the maintainer of the package

Source

pub fn set_maintainer(&mut self, maintainer: &str)

Set the maintainer of the package

Source

pub fn authors(&self) -> Option<RCode>

Return the authors of the package

Source

pub fn set_authors(&mut self, authors: &RCode)

Set the authors of the package

Source

pub fn set_title(&mut self, title: &str)

Set the title of the package

Source

pub fn description(&self) -> Option<String>

Return the description of the package

Source

pub fn set_description(&mut self, description: &str)

Set the description of the package

Source

pub fn version(&self) -> Option<String>

Return the version of the package

Source

pub fn set_version(&mut self, version: &str)

Set the version of the package

Source

pub fn encoding(&self) -> Option<String>

Return the encoding of the description file

Source

pub fn set_encoding(&mut self, encoding: &str)

Set the encoding of the description file

Source

pub fn license(&self) -> Option<String>

Return the license of the package

Source

pub fn set_license(&mut self, license: &str)

Set the license of the package

Source

pub fn roxygen_note(&self) -> Option<String>

Return the roxygen note

Source

pub fn set_roxygen_note(&mut self, roxygen_note: &str)

Set the roxygen note

Source

pub fn roxygen(&self) -> Option<String>

Return the roxygen version

Source

pub fn set_roxygen(&mut self, roxygen: &str)

Set the roxygen version

Source

pub fn url(&self) -> Option<String>

Return the URL field

Source

pub fn set_url(&mut self, url: &str)

Set the URL field

Source

pub fn bug_reports(&self) -> Option<Url>

Return the bug reports URL

Source

pub fn set_bug_reports(&mut self, bug_reports: &Url)

Set the bug reports URL

Source

pub fn imports(&self) -> Option<Vec<String>>

Return the imports field

Source

pub fn set_imports(&mut self, imports: &[&str])

Set the imports field

Source

pub fn suggests(&self) -> Option<Relations>

Return the suggests field

Source

pub fn set_suggests(&mut self, suggests: Relations)

Set the suggests field

Source

pub fn depends(&self) -> Option<Relations>

Return the depends field

Source

pub fn set_depends(&mut self, depends: Relations)

Set the depends field

Source

pub fn linking_to(&self) -> Option<Vec<String>>

Return the linking-to field

Source

pub fn set_linking_to(&mut self, linking_to: &[&str])

Set the linking-to field

Source

pub fn lazy_data(&self) -> Option<bool>

Return the lazy data field

Source

pub fn set_lazy_data(&mut self, lazy_data: bool)

Set the lazy data field

Source

pub fn collate(&self) -> Option<String>

Return the collate field

Source

pub fn set_collate(&mut self, collate: &str)

Set the collate field

Source

pub fn vignette_builder(&self) -> Option<Vec<String>>

Return the vignette builder field

Source

pub fn set_vignette_builder(&mut self, vignette_builder: &[&str])

Set the vignette builder field

Source

pub fn system_requirements(&self) -> Option<Vec<String>>

Return the system requirements field

Source

pub fn set_system_requirements(&mut self, system_requirements: &[&str])

Set the system requirements field

Source

pub fn date(&self) -> Option<String>

Return the date field

Source

pub fn set_date(&mut self, date: &str)

Set the date field

Source

pub fn repository(&self) -> Option<String>

The R Repository to use for this package.

E.g. “CRAN” or “Bioconductor”

Source

pub fn set_repository(&mut self, repository: &str)

Set the R Repository to use for this package.

Trait Implementations§

Source§

impl Default for RDescription

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Display for RDescription

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromStr for RDescription

Source§

type Err = Error

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,