Displaying 1 result from an estimated 1 matches for "newfuna".
Did you mean:
newfunc
2015 Jul 03
1
Are downstream dependencies rebuilt when a package is updated on CRAN?
...s the code in pkgB:
foo <- pkgA::makeClosure()
After building and installing pkgB, you can do this, which gives the
expected result:
> pkgB::foo()
[1] "funA was called!"
Now suppose pkgA is upgraded to 2.0, and it contains this:
makeClosure <- function() {
function() {
newFunA()
}
}
newFunA <- function() "newFunA was called!"
After this upgrade, when you run the pkgB::foo(), you'll get an error:
> pkgB::foo()
Error in foo() : could not find function "funA"
This is because the environment for pkgB::foo is the pkgA namespace,
but the con...