From brian at braverock.com  Mon Mar  2 23:56:51 2015
From: brian at braverock.com (Brian G. Peterson)
Date: Mon, 02 Mar 2015 16:56:51 -0600
Subject: [Rd] Import data set from another package?
In-Reply-To: <1e7ee5$5h3fc@ironport10.mayo.edu>
References: <1e7ee5$5h3fc@ironport10.mayo.edu>
Message-ID: <54F4EAB3.50505@braverock.com>

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.

Regards,

Brian

-- 
Brian G. Peterson
http://braverock.com/brian/
Ph: 773-459-4973
IM: bgpbraverock



[Rd] Import data set from another package?
Brian G. Peterson