I have a question regarding on how to automatically install dependent libraries while installing a self-made package from source.
Basically, the DESCRIPTION file looks like:
Package: mypackage
Type: Package
Title: mypackage_title
Version: 0.1.0
Author: test
Maintainer: test <test @example.com>
Description: More about what it does (maybe more than one line)
Depends:
dplyr,
stringr
License: MIT
LazyData: TRUE
RoxygenNote: 5.0.1
I followed the guide and created a .tar.gz file. When I distribute this package, a user will install from the source. In addition, what I expect is that from this source installation, dependent libraries such as dplyr and stringr will be installed automatically if those two are not available.
I tested in a virtual machine but ran into the following errors. So any suggestions on this issue? Thanks in advance!
install.packages("path_to_my_tar.gz", repos=NULL, type="source")
Error: dependencies 'dplyr', 'stringr' are not available for package
