Comments (6)
Same issue here and I can't tell from the error which S3 method is missing a tag.
from roxygen2.
I got the same issue, but no methods were missing tags. Restarting the R session made it go away...
from roxygen2.
I got the same issue, but no methods were missing tags. Restarting the R session made it go away...
I restarted several times and it did not work. And then, did some work, restarted and it magically stopped throwing errors.
In the meantime, I tried to install the fortran compiler that seemed to be missing. Maybe that fixed it.
from roxygen2.
The same issue is on GitHub Actions. How to solve it? Use the previous version of Roxygen2 where the issue was not present?
from roxygen2.
Yes, you can work around it by reverting to roxygen2 version 7.2.3. Or, you can give up and add @export
tags (that you probably don't want) to the functions that are missing them. You can tell which functions those are from the error message. The line that says With name:
tells you the name of the function that triggered the error.
from roxygen2.
I just figured out when this happens for me. If I have a breakpoint setup inside a method, and I run document(), the above error would appear. Removing the breakpoint removes the error. There may be multiple causes of the same error, but this is what was causing it for me.
Reproducible example:
#' @export
summary.myclass <- function(object) {
cat("This is a summary of myclass\n")
}
running document()
produces no errors. However, if I have a breakpoint setup within the Rstudio gui:
and I run document()
I get this error:
Error in `map2()`:
ℹ In index: 1.
ℹ With name: summary.myclass.
Caused by error in `basename()`:
! a character vector argument expected
Run `rlang::last_trace()` to see where the error occurred.
Warning message:
In class(f) <- c("s3method", "function") :
Setting class(x) to multiple strings ("s3method", "function", ...); result will no longer be an S4 object
from roxygen2.
Related Issues (20)
- Consider removing the `pkg::` prefix in the `Super classes` section when parent classes originate from the same package
- Broken support for `#' @importFrom` with backticks not documented HOT 7
- multi-line @rawNamespace + @import directives lead to mangled NAMESPACE on re-run HOT 1
- Regression: ‘roxygen2’ 7.3.0 fails to parse name of S3 method for class `{` HOT 2
- Release roxygen2 7.3.1
- Lost braces
- Autolinking with markdown functions does not produce the correct .Rd
- Obscure error "bad value" from leadingSpaces() HOT 2
- Drop 'if getRversion() >= "3.4.0"' qualification under examplesIf tag?
- roxygen2::roxygenize() trying to process too many files HOT 2
- Ability to use `inherit` to import contents but not overwrite
- S3 diagnostics suggests correction with typo
- don't use error cli output for 'skipping' entries
- `@export` all.equal S3 method error HOT 3
- Person declared as maintainer and author in DESCRIPTION loses author assignment in pkgname-package.Rd
- Typos: @exportS3method -> @exportS3Method HOT 1
- Consider checking @export or @exportS3method tags only for exported objects HOT 9
- Checking for missing S3 method exports hangs "forever" if you have large data objects in the package HOT 1
- @include tag does not handle line breaks
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roxygen2.