-
Notifications
You must be signed in to change notification settings - Fork 235
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
unable to find required package ‘roxygen_devtest’ #595
Comments
actually it doesn't matter how i call |
i guess i could pin down the root of the problem, by making a copy of the package with an empty R directory and then adding one R file after the other between it took four files: as soon as the S4 class definition in file the to further test this, i've removed the |
I've been getting this problem too. I changed to |
i can confirm that calling however, i wouldn't conider it a fix, it's a workaround depending on another package. whatever magic |
I certainly agree. I just have no idea how to isolate or fix the problem nor why some people get it and other don't. So for now...I'm working around in all of my packages |
I have experienced the same issue, which is documented here, in case this is helpful. |
FWIW, i've patched roxyPackage to be able to apply the workaround. |
I've experienced it too. Two options I found:
|
bump? |
Is this looked into by any roxygen2 maintainer ? @hadley @klutometis ? |
My RStudio build just broke because of upgrade to newer roxygen2 with this error. I work with people who just push the Build > Document button so a devtools workaround or installing an older version is an quite an annoyance for the team. This just needs to work. |
|
I fully appreciate that it's working your system Hadley. I wonder if it's something with our DESCRIPTION that might be funky? I don't know what else you'd like to see here or what might be helpful.
For some reason |
@pan0ramic well it would be helpful to know what package you were running it on 😉 A |
@hadley Thanks for being patient. I'm running this on a company package that isn't OS (related to calling our internal APIs). Here's my
Session Info:
|
@pan0ramic hmmm, I bet it is RC related. Could you please see if you can reproduce the problem in a package that just has a single simple RC class? |
i originally reported this issue and i don't use RC at all. i also already provided the failing package code (https://github.com/unDocUMeantIt/koRpus/tree/develop) a few months ago and explained how the problem can be triggered in previous comments (inheriting via "contains" in S4 classes). |
@hadley I was able to reproduce quite easily in the end.
And you get the error below. I appreciate your time; please let me know if I can be of further help here.
|
@pan0ramic thanks for the helping creating a minimal reprex. @unDocUMeantIt sorry I missed your reprex, but I read a lot of issues in a day, and your reprex was not very obvious. The root cause is this: env <- new.env(parent = globalenv())
methods::setPackageName("roxygen_devtest", env)
evalq(envir = env, {
setClass("A")
setClass("B", contains = "A")
}) in |
8d879e9 seems to be the first bad commit |
@krlmlr thanks! I bet it's the switch from Anyway, I'm going to remove |
@rguliev Thanks !! your are machine !! , and 5.0.1 work ..but i use : devtools::install_version(package = 'roxygen2',version = '5.0.1', repos ='http://cran.us.r-project.org') |
I got the same issue today. |
i'm suddenly getting this error message after upgrading to 6.0.1 when i'm trying to roxygenize() a package (called via roxygen2::roxygenize() from inside another package)
any ideas what causes this and how it can be fixed?
The text was updated successfully, but these errors were encountered: