Download data from website into RStudio

I found another problem. This time I am trying to install roxygen2 -install.packages("roxygen2")
and it cannot be done. I get a non-zero status. Do you know what is going on? Bellow is the entire output:

install.packages("roxygen2")
Installing package into ‘/home/giuseppa/R/x86_64-pc-linux-gnu-library/3.3’
(as ‘lib’ is unspecified)
also installing the dependency ‘xml2’

trying URL 'https://cran.rstudio.com/src/contrib/xml2_1.1.1.tar.gz'
Content type 'application/x-gzip' length 244643 bytes (238 KB)
==================================================
downloaded 238 KB

trying URL 'https://cran.rstudio.com/src/contrib/roxygen2_6.0.1.tar.gz'
Content type 'application/x-gzip' length 150580 bytes (147 KB)
==================================================
downloaded 147 KB

* installing *source* package ‘xml2’ ...
** package ‘xml2’ successfully unpacked and MD5 sums checked
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lxml2
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libxml-2.0 was not found. Try installing:
 * deb: libxml2-dev (Debian, Ubuntu, etc)
 * rpm: libxml2-devel (Fedora, CentOS, RHEL)
 * csw: libxml2_dev (Solaris)
If libxml-2.0 is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libxml-2.0.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘xml2’
* removing ‘/home/giuseppa/R/x86_64-pc-linux-gnu-library/3.3/xml2’
Warning in install.packages :
  installation of package ‘xml2’ had non-zero exit status
ERROR: dependency ‘xml2’ is not available for package ‘roxygen2’
* removing ‘/home/giuseppa/R/x86_64-pc-linux-gnu-library/3.3/roxygen2’
Warning in install.packages :
  installation of package ‘roxygen2’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/Rtmp1icqUW/downloaded_packages’
> install.packages("roxygen2_6.0.1.tar.gz", type="source", repos=NULL)
Installing package into ‘/home/giuseppa/R/x86_64-pc-linux-gnu-library/3.3’
(as ‘lib’ is unspecified)
ERROR: dependency ‘xml2’ is not available for package ‘roxygen2’
* removing ‘/home/giuseppa/R/x86_64-pc-linux-gnu-library/3.3/roxygen2’
Warning in install.packages :
  installation of package ‘roxygen2_6.0.1.tar.gz’ had non-zero exit status
> install.packages("xml2")
Installing package into ‘/home/giuseppa/R/x86_64-pc-linux-gnu-library/3.3’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/xml2_1.1.1.tar.gz'
Content type 'application/x-gzip' length 244643 bytes (238 KB)
==================================================
downloaded 238 KB

* installing *source* package ‘xml2’ ...
** package ‘xml2’ successfully unpacked and MD5 sums checked
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lxml2
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libxml-2.0 was not found. Try installing:
 * deb: libxml2-dev (Debian, Ubuntu, etc)
 * rpm: libxml2-devel (Fedora, CentOS, RHEL)
 * csw: libxml2_dev (Solaris)
If libxml-2.0 is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libxml-2.0.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘xml2’
* removing ‘/home/giuseppa/R/x86_64-pc-linux-gnu-library/3.3/xml2’
Warning in install.packages :
  installation of package ‘xml2’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/Rtmp1icqUW/downloaded_packages’
> library("testthat")
> install.packages("roxygen2")
Installing package into ‘/home/giuseppa/R/x86_64-pc-linux-gnu-library/3.3’
(as ‘lib’ is unspecified)
also installing the dependency ‘xml2’

trying URL 'https://cran.rstudio.com/src/contrib/xml2_1.1.1.tar.gz'
Content type 'application/x-gzip' length 244643 bytes (238 KB)
==================================================
downloaded 238 KB

trying URL 'https://cran.rstudio.com/src/contrib/roxygen2_6.0.1.tar.gz'
Content type 'application/x-gzip' length 150580 bytes (147 KB)
==================================================
downloaded 147 KB

* installing *source* package ‘xml2’ ...
** package ‘xml2’ successfully unpacked and MD5 sums checked
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lxml2
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libxml-2.0 was not found. Try installing:
 * deb: libxml2-dev (Debian, Ubuntu, etc)
 * rpm: libxml2-devel (Fedora, CentOS, RHEL)
 * csw: libxml2_dev (Solaris)
If libxml-2.0 is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libxml-2.0.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘xml2’
* removing ‘/home/giuseppa/R/x86_64-pc-linux-gnu-library/3.3/xml2’
Warning in install.packages :
  installation of package ‘xml2’ had non-zero exit status
ERROR: dependency ‘xml2’ is not available for package ‘roxygen2’
* removing ‘/home/giuseppa/R/x86_64-pc-linux-gnu-library/3.3/roxygen2’
Warning in install.packages :
  installation of package ‘roxygen2’ had non-zero exit status

The downloaded source packages are in
	‘/tmp/Rtmp1icqUW/downloaded_packages’