Skip to contents

Because eurobarometer is in an early development phase, you cannot install it from CRAN with the install.packages("eurobarometer") command yet. You can install the development version of eurobarometer from GitHub with devtools.

For installing a not-yet-released package, you not only need R to be installed on your computer, but must be able to build packages from source (those that need compilation of C/C++ or Fortran code).

  • On Ubuntu, you need to install r-base-dev with sudo apt-get install r-base-dev, see further information.

  • On Windows install the latest version of Rtools.

  • On Mac install from Terminal Xcode with xcode-select --install.

Once you can work with development version packages, run install.packages("devtools").

If devools is correctly installed on your computer, you can install eurobarometer:

devtools::install_github("dataobservatory-eu/eurobarometer")

You need to install the dependencies together with their dependencies:

install.packages(c("dataset", "declared", "retroharmonize", "DDIwR"))

To install the latest development version of DDIwR (not needed for this version of eurobarometer):

devtools::install_github("dusadrian/DDIwR")

Back to README.