How To Install r-cran-markdown on Debian 9
Introduction
In this tutorial we learn how to install r-cran-markdown
on Debian 9.
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 Debian 9. 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 first since aptitude is usually not installed by default on Debian. 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 Debian 9
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 Debian 9, 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 Debian 9 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 Debian 9 using different package management tools: apt
, apt-get
and aptitude
.