Skip to content
Back to formatted view

Raw Message

Message-ID: <24718.40602.671410.739255@rob.eddelbuettel.com>
Date: 2021-05-02T12:44:10Z
From: Dirk Eddelbuettel
Subject: [R-pkg-devel] Large data package
In-Reply-To: <77E0A411-7ECB-4AED-B05C-3E513891D6F7@imperial.ac.uk>

On 2 May 2021 at 10:12, Ayala Hernandez, Rafael wrote:
| Following Dirk's suggestion below, I have recently added a data package as a drat repository for my asteRisk package, placing it under Suggests in the main package.
| In order to keep the code tidy and know exactly when I?m accessing the data in the data package, I access all the data in the data package as asteRiskData:::Item

Why would that be 'tidy'?

Just use two colons as usual for things exported from your data package, and
export everythng that your code package uses from it. The ':::' idiom is not
to be used across package, ie don;t use in package B to access content from
A. Which is what R CMD check is telling your here: "don't do this".

Dirk

-- 
https://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org