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 in FUN(): ! Must return a roclet #1655

Closed
chrarnold opened this issue Sep 5, 2024 · 1 comment
Closed

Error in FUN(): ! Must return a roclet #1655

chrarnold opened this issue Sep 5, 2024 · 1 comment

Comments

@chrarnold
Copy link

I am getting this error, it literally worked half an hour ago, I dont see what I changed to break this except renaming (exported) functions, and I reproducibly receive this error with the newest 7.3.2 roxygen2 package in Rstudio:


==> devtools::document(roclets = c(''))

ℹ Updating bla documentation
Error in `FUN()`:
! Must return a roclet
Backtrace:
    ▆
 1. ├─base::suppressPackageStartupMessages(...)
 2. │ └─base::withCallingHandlers(expr, packageStartupMessage = function(c) tryInvokeRestart("muffleMessage"))
 3. └─devtools::document(roclets = c(""))
 4.   └─roxygen2::roxygenise(pkg$path, roclets)
 5.     └─base::lapply(roclets, roclet_find)
 6.       └─roxygen2 (local) FUN(X[[i]], ...)
 7.         └─cli::cli_abort("Must return a roclet")
 8.           └─rlang::abort(...)
Execution halted

Exited with status 1.

I dont find any relevant Google hits, either.

@chrarnold
Copy link
Author

Can be closed. Somehow, my RStudio de-selected roxygen2 in the Project settings, this then caused the error.

The error could be nicer, though, very hard to understand whats the actual reason: It needs to be called with a non-empty list, like this:

==> devtools::document(roclets = c('rd', 'collate', 'namespace'))

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

1 participant