Skip to Content
R Programming By Example
book

R Programming By Example

by Omar Trejo Navarro
December 2017
Beginner to intermediate
470 pages
12h 29m
English
Packt Publishing
Content preview from R Programming By Example

Ubuntu 17.10

To install GDAL and X11, we need various system libraries in Ubuntu. The easiest way to accomplish this is to use the following lines. If you had no problems, you should be all set:

$ apt-get update
$ apt-get install r-cran-rgl

If using the previous lines gave you an error, or otherwise did not work, you can try to install GDAL in a more explicit way using the following lines. The last two lines can be combined into a single one if you prefer, they were split due to space restrictions:

# apt-get update
$ apt-get install mesa-common-dev libglu1-mesa-dev libgdal1-dev
$ apt-get install libx11-dev libudunits2-dev libproj-dev

If you still get some kind of error with the previous commands, you can try to add the ubuntugis repository ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Efficient R Programming

Efficient R Programming

Colin Gillespie, Robin Lovelace
R Programming

R Programming

Jared P. Lander

Publisher Resources

ISBN: 9781788292542Supplemental Content