[Rd] Import data set from another package?

Brian G. Peterson brian at braverock.com
Mon Mar 2 23:56:51 CET 2015

On 03/02/2015 04:48 PM, Therneau, Terry M., Ph.D. wrote:
> I've moved nlme from Depends to Imports in my coxme package. However, a
> few of the examples for lmekin use one of the data sets from nlme.  This
> is on purpose, to show how the results are the same and how they differ.
>   If I use  data(nlme::ergoStool)  the data is not found,
> data(nlme:::ergoStool) does no better.
>   If I add importFrom(nlme, "ergoStool") the error message is that
> ergoStool is not exported.
> There likely is a simple way, but I currently don't see it.

In your examples, can't you use:

data("ergoStool", package="nlme")


That is how a user would call it if they wished to use the dataset.



Brian G. Peterson
Ph: 773-459-4973
IM: bgpbraverock

More information about the R-devel mailing list