18.2 Dependencies
20200221 Within the MLHUB.yaml file dependencies can be listed.
To install a system dependency
dependencies:
system:
- atril # apt install atril
To install a system python package, for example python3-opencv:
dependencies:
python3:
- opencv # apt install python3-opencv
For a Python package installed from pipy:
description:
pip3:
- pyfakewebcam # pip3 install pyfakewebcam
For R package dependencies if a package needs to be installed
then it will be installed into ~/.mlhub/pkg/R/
. In
this way the installation of particular versions of a package will not
interfere with any system or user installed versions of packages for
other applications.
dependencies:
cran:
- rpart # install.packages("rpart")
- rattle=5.2.0 # devtools::install_version("rattle", version="5.2.0")
File dependencies in the simplest case install files from the git
repository onto the local installation of the package base directory
(~/.mlhub/pkg/
):
dependencies:
files:
- docs/README.md # Install from github as README.md in base directory.
- demo.R # Install from github as demo.R in base directory.
Arbitrary files can be downlaoded from the Internet and renamed/saved locally:
dependencies:
files:
- https://www.wayoutback.com.au/assets/Uploads/Uluru.jpg: cache/images/uluru.jpg
- https://www.wayoutback.com.au/assets/Uploads/Uluru.jpg: cache/images/
Your donation will support ongoing development and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 1995-2021 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0.