arorar / PortfolioConstruction

0 stars 1 forks source link

document imports in a package #8

Open robustport opened 1 year ago

robustport commented 1 year ago

Current practice is to not put imports in individual functions, and just list them in: (1) a single function, e.g., see the function the function PCRA-package.R in the PCRA package, and (2) In the DESCRIPTION file, e.g., see that in the PCRA package.

robustport commented 1 year ago

Sorry, I should have said that in the single function one often puts mainly the import of specific functions from specific packages, with @importFrom, e.g., as in the PCRA function PCRA-package.R, and puts general package imports in the DESCRIPTION file.