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

load_all() & friends corrupt imported S4 class definitions #75

Closed
ghost opened this issue Sep 7, 2018 · 0 comments
Closed

load_all() & friends corrupt imported S4 class definitions #75

ghost opened this issue Sep 7, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 7, 2018

@mtmorgan commented on Aug 10, 2018, 7:52 PM UTC:

Installed PkgA has R/classes.R (and implied NAMESPACE)

setClass("C")
setClass("D")

#' @export
setClass("B", contains = c("C", "D"))

PkgB has R/classes.R (etc)

#' @importClassesFrom PkgA B
setClass("A", contains = "B")

devtools::load_all() in PkgB does well the first time with

> devtools::load_all()
Loading PkgB
> getClass("B")
Class "B" [package "PkgA"]

No Slots, prototype of class "S4"

Extends: "C", "D"

Known Subclasses: "A"

but the second time the imported class "B" has lost the classes it extends

> devtools::load_all()
Loading PkgB
> getClass("B")
Class "B" [package "PkgA"]

No Slots, prototype of class "S4"

Known Subclasses: "A"

This is with

> packageVersion("devtools")
[1] '1.13.6.9000'

This issue was moved by jimhester from r-lib/devtools#1845.

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

0 participants