I have an rmd file with plots and I am trying to publish the .rmd file into my dedicated server. The process starts but then fails all of a sudden. I tried to google a solution but I cant seem to understand whats happening exactly.
this is the final error message I get
--------------------------- [ANTICONF] --------------------------------
Configuration failed because libarchive was not found. Try installing:
* deb: libarchive-dev (Debian, Ubuntu, etc)
* rpm: libarchive-devel (Fedora, CentOS, RHEL)
* csw: libarchive_dev (Solaris)
* brew: libarchive (Mac OSX)
If libarchive is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libarchive.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=...'
--------------------------------------------------------------------
* installing to library ‘/usr/lib/R’
* installing *source* package ‘archive’ ...
** package ‘archive’ successfully unpacked and MD5 sums checked
** using staged installation
<stdin>:1:10: fatal error: archive.h: No such file or directory
compilation terminated.
ERROR: configuration failed for package ‘archive’
* removing ‘/usr/lib/R/archive’## End Task Log ################################################################
Error: Unhandled Exception: child_task=1406817497 child_task_status=failed: Error building image: Error building archive (1.1.7). Build exited with non-zero status: 1
Execution halted
I am not very good with cmd and interpreting the outputs so if anyone can suggest some steps I can take to resolve this would be much appreciated.
apt install libarchive-devversion$platformcan show which operating system R is running on.