Code
desc$get_field("package")
Condition
Error in `val %||% default`:
! Field 'package' not found
Code
desc$get_or_fail("package")
Condition
Error:
! Could not find DESCRIPTION field: 'package'.
Code
desc$get_or_fail(c("Package", "versionx"))
Condition
Error:
! Could not find DESCRIPTION field: 'versionx'.
Code
desc$get_or_fail(c("Package", "versionx", "foobar"))
Condition
Error:
! Could not find DESCRIPTION fields: 'versionx', 'foobar'.
Code
desc$set("foobar")
Condition
Error in `idesc_set()`:
! $set needs two unnamed args, or all named args, see docs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.