Skip to content

Error with write_compendium_description()  #50

@bitbacchus

Description

@bitbacchus

What I did

  1. I created a new package in RStudio and added three folders: Data, R and Analysis:

Screenshot from 2020-05-22 14-03-33

(tried on R 3.6.3 and R 4.0.0)

  1. In the R folder I added an R script:

Screenshot from 2020-05-22 14-05-27

  1. 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions