-
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
What I did
- I created a new package in RStudio and added three folders: Data, R and Analysis:
(tried on R 3.6.3 and R 4.0.0)
- In the R folder I added an R script:
- I tried to generate a
DESCRIPTION
file
> holepunch::write_compendium_description()
Finding R package dependencies ... Done!
Error: text is not a character vector
What happened
No DESCRIPTION
file generated
What you expected to happen
A DESCRIPTION
file ;-)
Some breadcrumbs that might help (hopefully)
I tried to track down where in the write_compendium_description()
function the error occurs. It seems to be here:
desc <- desc::description$new(text = desc) |
Apparently, the function desc::description
expects a character vector as input and complains about it. desc
is indeed not a vector:
> class(desc)
[1] "description" "R6"
The desc
object looks like this (Depends:
is missing)
> desc
Package: CompendiumCompendium title0.0.1Compendium
descriptionlandscapemetrics
Title: What the Package Does (One Line, Title Case)
Version: 0.0.0.9000
Authors@R (parsed):
* First Last <[email protected]> [aut, cre] (<https://orcid.org/YOUR-ORCID-ID>)
Description: What the package does (one paragraph).
License: `use_mit_license()`, `use_gpl3_license()` or friends to
pick a license
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.1.0
I hope you can help me :-)
Thanks,
Sebastian
Metadata
Metadata
Assignees
Labels
No labels