I’m working to create a package that calls a function from another local package. This was pretty straightforward to do but I’m seeing an error.
new_function <- function(input1, ...) {
localPackage::old_function(input1, ...)
}
Unfortunately, I can’t share the details of the error due to proprietary reasons but am seeing an attempt to apply non-function
within the inner function.
After loading in my custom package, if I run localPackage::old_function(input1, ...)
, it works fine but new_function(input1, ...)
gives the error.
I’m looking for any workarounds. My thought was if I can define a function, that upon calling, would define the new function and load it into my environment, that may work.
My apologies – I know this is an absolutely horrible SO question without any reproducible example. I appreciate any help.