How To Install r-cran-rmarkdown on Kali Linux
Introduction
In this tutorial we learn how to install r-cran-rmarkdown
on Kali Linux.
What is r-cran-rmarkdown
r-cran-rmarkdown is:
R Markdown is a framework for creating documents that mix R code with markdown to produce visually pleasing, high quality and reproducible reports. It supports various output formats, including HTML, PDF, Microsoft Word and Beamer.
Please note: Upstream rmarkdown contains export to ioslides. This was removed from the Debian package due to not existing license statement. If you need this functionality you need to install rmarkdown manually from CRAN.
There are three methods to install r-cran-rmarkdown
on Kali Linux. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install r-cran-rmarkdown Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install r-cran-rmarkdown
using apt-get
by running the following command:
sudo apt-get -y install r-cran-rmarkdown
Install r-cran-rmarkdown Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install r-cran-rmarkdown
using apt
by running the following command:
sudo apt -y install r-cran-rmarkdown
Install r-cran-rmarkdown Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install r-cran-rmarkdown
using aptitude
by running the following command:
sudo aptitude -y install r-cran-rmarkdown
How To Uninstall r-cran-rmarkdown on Kali Linux
To uninstall only the r-cran-rmarkdown
package we can use the following command:
sudo apt-get remove r-cran-rmarkdown
Uninstall r-cran-rmarkdown And Its Dependencies
To uninstall r-cran-rmarkdown
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove r-cran-rmarkdown
Remove r-cran-rmarkdown Configurations and Data
To remove r-cran-rmarkdown
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge r-cran-rmarkdown
Remove r-cran-rmarkdown configuration, data, and all of its dependencies
We can use the following command to remove r-cran-rmarkdown
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge r-cran-rmarkdown
Dependencies
r-cran-rmarkdown have the following dependencies:
- r-base-core
- r-api-4.0
- r-cran-knitr
- r-cran-yaml
- r-cran-htmltools
- r-cran-evaluate
- r-cran-jsonlite
- r-cran-tinytex
- r-cran-xfun
- r-cran-stringr
- libjs-bootstrap
- libjs-highlight.js
- libjs-jquery-ui
- libjs-modernizr
- libjs-prettify
- fonts-font-awesome
- pandoc
- r-cran-shiny
- node-html5shiv
References
Summary
In this tutorial we learn how to install r-cran-rmarkdown
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.