1. Installing ROpenCVLite

Simon Garnier

Installing ROpenCVLite should go smoothly on all major operating systems (Mac, Windows, “Ubuntu-like” Linux). There are a few steps to follow before installing the package itself in order to install all the necessary external (i.e. non-R) dependencies for OpenCV.

All installation steps are described below.



1 - Before installing

1.1 - Windows

Before installing ROpenCVLite, you will need to install the latest versions of CMake and Rtools.

Download CMake for Windows at https://cmake.org/download/.

Download the latest “frozen” version of Rtools at https://cran.r-project.org/bin/windows/Rtools/.

In both cases, make sure to tell the installer to add CMake and Rtools to your “PATH”.

1.2 - Mac

Before installing ROpenCVLite, you will need to install the latest version of CMake.

Download CMake for Mac at https://cmake.org/download/. You can also use Homebrew or MacPorts if you prefer (I prefer!).

Homebrew:

MacPorts:

1.3 - Linux

Before installing ROpenCVLite, you will need to install the latest version of CMake.

Download CMake for Linux at https://cmake.org/download/. However it is recommended that you install it using your distribution’s package management system.

Ubuntu:

[TODO: add more Linux install commands]

1.4 - Mac, Linux and Windows

Before installing ROpenCVLite, you will need to install the devtools package in R.


2 - Installing ROpenCVLite

devtools::install_github("swarm-lab/ROpenCVLite")

This step can take some time. Go make yourself a cup of coffee or two.