Skip to content

Instantly share code, notes, and snippets.

@gideonawotunde
Created September 28, 2021 12:57
Show Gist options
  • Save gideonawotunde/6c09df9557ce55c90a4fceadb805f9a3 to your computer and use it in GitHub Desktop.
Save gideonawotunde/6c09df9557ce55c90a4fceadb805f9a3 to your computer and use it in GitHub Desktop.
Web Technology
# `How to execute the `make` command successfully.`
To do this, we shall have to install conda, and I believe it has already been installed, and if it has not, you can go to [Miniconda's](https://docs.conda.io/en/latest/) page, and install the required version.
If you are using a Linux or MacOS system, i believe that you have [Bash](https://www.gnu.org/software/bash/) installed on your system.
We first create an environment called, markdown2 as we are using `R` and after that we activate it after. We do this by:
```
conda create -a rmarkdown2 r-base=4.1.1
conda activate rmarkdown2
```
## `Installation using Conda in Terminal`
---
While using the conda environment, you have to enable the conda forge channel, to install all required packages. To do that, you must input the following command:
```
conda config --add channels conda-forge
conda config --set channel_priority strict
```
You can now start to install any softwares in conda enironment you want with:
``` conda install <package-name> ```
For the necessary packages, for now, we will be installing in terminal, [Git](https://git-scm.com/), [Make](https://www.gnu.org/software/make/), [Pandoc](https://pandoc.org/), and we will use the following commands:
```
conda install make
conda install git
conda install pandoc
```
# `Cloning the Repository`
After installing the above packages, you are now expexted to clone a git hub repository. To do this, first you have to copy the url of the repository and then, you go to visual studio, go to view, then command pallete, then type "Git: " and you see an option, "Git: Clone" and then you paste in the url.
We clone by using:
```git clone https://github.com/jeszy75/rmarkdown-examples ```
The pallete input will switch, asking for the root directory where you want the clone to be placed. Enter the new directory, and input the path, and after this, you have successfully cloned your repository.
After cloning the repository, you open terminal, and open the directory of the cloned repository using the command:
```
cd rmarkdown-examples
```
You are to now to install r-rmarkdown and r-reticulate in the directory;
```
conda install r-rmarkdown
conda install r-reticulate
```
We then run the make command:
```
cd rmarkdown-examples/html_document/python
make
```
After doing that, on the keyboard, use keyboard combinations, `Ctrl O` to open the document on MOzilla Firefox in html form.
* The `r markdown` makes use of the pandoc to change the form of the file.
With all the above steps, you should have now executed the `make` command successfully.
---
Name: Awotunde Gideon Oyetunji
---
Neptun Code: YJNUMT
---
---
@gideonawotunde
Copy link
Author

How to execute the make command successfully.

To do this, we shall have to install conda, and I believe it has already been installed, and if it has not, you can go to Miniconda's page, and install the required version.
If you are using a Linux or MacOS system, i believe that you have Bash installed on your system.

We first create an environment called, markdown2 as we are using R and after that we activate it after. We do this by:

        conda create -a rmarkdown2 r-base=4.1.1
        conda activate rmarkdown2

Installation using Conda in Terminal


While using the conda environment, you have to enable the conda forge channel, to install all required packages. To do that, you must input the following command:

    conda config --add channels conda-forge
    conda config --set channel_priority strict

You can now start to install any softwares in conda enironment you want with:
conda install <package-name>

For the necessary packages, for now, we will be installing in terminal, Git, Make, Pandoc, and we will use the following commands:

            conda install make
            conda install git
            conda install pandoc

Cloning the Repository

After installing the above packages, you are now expexted to clone a git hub repository. To do this, first you have to copy the url of the repository and then, you go to visual studio, go to view, then command pallete, then type "Git: " and you see an option, "Git: Clone" and then you paste in the url.

We clone by using:
git clone https://github.com/jeszy75/rmarkdown-examples

The pallete input will switch, asking for the root directory where you want the clone to be placed. Enter the new directory, and input the path, and after this, you have successfully cloned your repository.

After cloning the repository, you open terminal, and open the directory of the cloned repository using the command:

                cd rmarkdown-examples

You are to now to install r-rmarkdown and r-reticulate in the directory;

             conda install r-rmarkdown
             conda install r-reticulate

We then run the make command:

        cd rmarkdown-examples/html_document/python 
        make

After doing that, on the keyboard, use keyboard combinations, Ctrl O to open the document on MOzilla Firefox in html form.

  • The r markdown makes use of the pandoc to change the form of the file.

With all the above steps, you should have now executed the make command successfully.


Name: Awotunde Gideon Oyetunji

Neptun Code: YJNUMT


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment