I'm coding a R package, and in DESCRIPTION file:
Imports: stringr,splitstackshape
in NAMESPACE file:
import(splitstackshape)
import(stringr)
but when i load this package locally:
install.packages("~/Desktop/DCR_0.1.0.tar.gz", repos = NULL, type =
"source")
ERROR: dependency ‘stringr’ is not available for package ‘DCR’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/DCR’
so, how to make it automatically load dependent packages when i install package by .gz file?