-
-
Notifications
You must be signed in to change notification settings - Fork 48
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 during import #117
Comments
I can’t reproduce the bug but I have an idea what might be causing it. I’ll get back to you soon …! EDIT
For now, you can probably disable the bug by using the following hotfix branch instead of To use it, you’ll need to pull this branch and then compile the documentation via make doc After that, you can install via |
Hi @klmr I'm still seeing this with the master branch. A Dockerfile for an env reproducing the behavior is below:
Building the image as
Then executing
Gives the error
Tbh I'm expecting this to be user error, as I managed to use Thanks, PS - Thanks for the excellent package! |
This issue shows me that I still haven’t fully grokked how R looks up definitions of S3 objects in different namespaces. I know what the error is and I can produce a hotfix to work around it. But I’m still trying to figure out how to avoid it properly. |
R is one seriously slippery fish. Is this hotfix hosted? Not that I'm under any illusion that I could help, I'm just interested to see what's causing the error. |
Uhm. Never mind — I think?! Turns out, when re-deploying the existing code without changes everything works. Apparently I had failed to re-generate the diff --git a/NAMESPACE b/NAMESPACE
index 443ea2d..88bedd5 100644
--- a/NAMESPACE
+++ b/NAMESPACE
@@ -13,10 +17,6 @@ export(module_help)
export(module_name)
export(register_S3_method)
export(reload)
-export(roclet_clean.roclet_export)
-export(roclet_output.roclet_export)
-export(roclet_process.roclet_export)
-export(roclet_tags.roclet_export)
+S3method(roclet_clean,roclet_export)
+S3method(roclet_output,roclet_export)
+S3method(roclet_process,roclet_export)
+S3method(roclet_tags,roclet_export)
export(set_script_path)
export(unload)
importFrom(roxygen2,roclet_clean) Anyway, my understanding of S3 lookup in R has been vindicated (again: I think). I’ll fix master ASAP. |
This issue is back for me (latest version of The bad news is, it only happens in Rstudio (using exactly the same environment as on the command line). Any ideas? I'm struggling to provide more information as I cannot even reproduce it on the command line (as I said, using the same R installation...). But let me know if you need any additional information. |
Same issue for me on the R command line: Error in UseMethod("roclet_tags") :
no applicable method for 'roclet_tags' applied to an
object of class "c('roclet_rd', 'roclet')" R Works with |
@mschubert To confirm, this is caused by updated roxygen2? Annoying. That said, please open a new issue, this would be unrelated, even if the error message is quite similar. |
@grst From Michael’s description I’m guessing you have a different library and thus different version of roxygen2 active in the console and RStudio, can you confirm this? |
Nope - it's roxygen2 Actually, using the R console it fails, too:
But using |
OK, thanks for verifying. The reason |
@grst @mschubert This should now hopefully be fixed (unless I messed up the deployment again). Apologies for the delay. |
Dear Konrad,
I'm currently trying to switch completely to modules, however I've encountered a quite cryptic error.
When I try to do the following:
helper = modules::import('Functions_Helper')
I get the following error:
no applicable method for 'roclet_tags' applied to an object of class "c('roclet_export', 'roclet')"
I think it might have to do something with the fact that roxygen2 has an import function, which then causes the collision.
R is run with vanilla so there's nothing attached except the standard base stuff.
Here is my session info:
Any help would be appreciated,
Best,
Vedran
The text was updated successfully, but these errors were encountered: