-
Notifications
You must be signed in to change notification settings - Fork 234
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
Loading package fails on setOldClass #568
Comments
Hm, so until this is fixed, the workaround is to use |
FWIW: I'm also seeing this problem when I try build my NAMESPACE. The method I use is
Which worked just fine with 5.x.x, but now breaks with the error that was reported above (cannot find roxygen_devtest) |
Can we get some kind of estimate of when this might be fixed? Is it a big problem requiring lots of substantial development or, potentially, a 1 line fix? |
have similar issue here. It works when I re-install old version (5.0.1). |
Hm, I was using the old class |
…r now [ci skip]
I noticed this problem too when my package had other (non-related) errors that prevented it from being built. After correcting the other errors and rebuilding the package roxygenize worked fine. |
Still having this with latest (as of today) version from GitHub installed, The
|
We should be able to fix this now that the package loading simulation has been extracted out of devtools and into pkgload. However, in general, there is no way to avoid recompiling code because you may be documenting C++ functions. |
That's disappointing. Is there some way to invoke roxygen2 to tell it that we don't care about C++ functions and compilation can be skipped? |
I don't understand why it's a problem because you only need to recompile when the C++ code changes. |
Oh! That is an improvement. I'll let you know how things go. |
…o import/export objects from base R, which is because getNamespaceExports(pkg) will return wrong objects
For the record only, because I realized that things works fine with
devtools::document
.If the package to document contains a call to
setOldClass
, thenroxygenise
fails with the following error:traceback
shows:The text was updated successfully, but these errors were encountered: