How To Install r-cran-markdown on Kali Linux

In this tutorial we learn how to install r-cran-markdown on Kali Linux. r-cran-markdown is GNU R package providing R bindings to the Sundown Markdown rendering library

Introduction

In this tutorial we learn how to install r-cran-markdown on Kali Linux.

What is r-cran-markdown

r-cran-markdown is:

Provides R bindings to the Sundown Markdown rendering library by Vicent Marti e.a., based upon work by Natacha Port?. Markdown is a plain-text formatting syntax that can be converted to XHTML or other formats.

The R function markdownToHTML renders a markdown file to HTML. Options controlling HTML output and supported markdown extensions can be optionally specified.

The package also exports the underlying Sundown C extension API which enables creating and calling custom renderers using the renderMarkdown function.

Please note: the rmarkdown package (with leading r) converts R Markdown documents into even more formats, by using pandoc; the CRAN rmarkdown package is a newer and enhanced version of this markdown package.

There are three methods to install r-cran-markdown 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-markdown 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-markdown using apt-get by running the following command:

sudo apt-get -y install r-cran-markdown

Install r-cran-markdown Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install r-cran-markdown using apt by running the following command:

sudo apt -y install r-cran-markdown

Install r-cran-markdown 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-markdown using aptitude by running the following command:

sudo aptitude -y install r-cran-markdown

How To Uninstall r-cran-markdown on Kali Linux

To uninstall only the r-cran-markdown package we can use the following command:

sudo apt-get remove r-cran-markdown

Uninstall r-cran-markdown And Its Dependencies

To uninstall r-cran-markdown and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove r-cran-markdown

Remove r-cran-markdown Configurations and Data

To remove r-cran-markdown configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge r-cran-markdown

Remove r-cran-markdown configuration, data, and all of its dependencies

We can use the following command to remove r-cran-markdown configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge r-cran-markdown

Dependencies

r-cran-markdown have the following dependencies:

References

Summary

In this tutorial we learn how to install r-cran-markdown package on Kali Linux using different package management tools: apt, apt-get and aptitude.