Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with write_compendium_description() #50

Open
bitbacchus opened this issue May 22, 2020 · 6 comments
Open

Error with write_compendium_description() #50

bitbacchus opened this issue May 22, 2020 · 6 comments

Comments

@bitbacchus
Copy link

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

@jperkel
Copy link

jperkel commented Jun 11, 2020

I am seeing the same issue with my own repo (https://github.com/jperkel/covidlit), thank you.

@karthik
Copy link
Owner

karthik commented Jun 12, 2020

Thanks both. This is a known issue and will be fixed next week. You can downgrade usethis to fix this issue temporarily.

@nuest
Copy link

nuest commented Jun 24, 2020

@karthik Which version of usethis should fix the problem?

@karthik
Copy link
Owner

karthik commented Jun 25, 2020

1.51 or below should work. I'm hoping to carve out time to resolve the bug this week and usethis will no longer be a problem.

@nxskok
Copy link

nxskok commented Jul 11, 2020

same for me. Tried downgrading usethis to 1.5.0, but same problem then.

@karthik
Copy link
Owner

karthik commented Jul 11, 2020

@nxskok Are you on R 4.0? If so there is another small piece that's part of the fix. I truly am striving to get this fixed asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants