Mini-Lecture 16
Smith College
2024-10-29
I’m still a bit unsure about dependencies. When and where do we have to import functions and when can we call libraries in the script?
library() in scripts:
data-raw/:: or @importFrom in package code:
R/ImportsI’m still a bit unsure about dependencies. When and where do we have to import functions and when can we call libraries in the script?
requireNamespace() in documentation code:
vignettes/@examplestests/SuggestsImports section of DESCRIPTION with import() directive in NAMESPACE.RbuildignoreI got lost on explaining
.Rbuildignore.
^.*\.Rproj$ # Automatically added by RStudio,
^\.Rproj\.user$ # used for temporary files.
^README\.Rmd$ # An Rmarkdown file used to generate README.md
^cran-comments\.md$ # Comments for CRAN submission
^NEWS\.md$ # A news file written in Markdown
R CMD check?#questionsDESCRIPTION somewhereDependsImports: dependencies in packageSuggests: packages used only in examples or vignettes@rdname to document multiple functions togethermacleish package
SDS 410