ropensci / codemetar

an R package for generating and working with codemeta
https://docs.ropensci.org/codemetar
66 stars 21 forks source link

`dot_to_package()` requires a `man/` and a `R/` folder #332

Open ha0ye opened 2 years ago

ha0ye commented 2 years ago

I have some R packages that are code-less, using the structure for other reasons - basically packaging contents to use automated machinery, such as {{pkgdown}}.

When I try to use write_codemeta() to generate a codemeta.json file, it fails when an error in dot_to_package(). After checking the code, it seems that this function wants a folder that has DESCRIPTION, NAMESPACE, man/ and R/. (The last two don't exist in my repos) https://github.com/ropensci/codemetar/blob/20376ab4f017f6561544fa6ee4a603cda753e434/R/utils.R#L147

I think the last two checks can be removed.

example repo: https://github.com/uf-repro/rmarkdown-intro

maelle commented 2 years ago

@cboettig if you're ok with this change I can make a PR