I am building an R package and want to get my dependencies right. I use the function Linp from the LIM package. LIM is listed in the 'Imports' field in my DESCRIPTION file. I import the function in my NAMESPACE file:
importFrom("LIM", "Linp")
When running R CMD CHECK I get an error when the example of the function which uses Linp is run:
Error: could not find function "linp"
So there seems to be Linp and linp.
The following fails:
importFrom("LIM", "linp")
Error : object ‘linp’ is not exported by 'namespace:LIM'
because there is no LIM::linp. However, there is a limSolve::linp, but if I add limSolve in DESCRIPTION and put the following into my NAMESPACE:
importFrom("limSolve", "linp")
I still get the error:
Error: could not find function "linp"
What am I missing here?