Skip to main content

Posts

Showing posts with the label Programming

How to program in R language in Jupyter Notebooks using Conda environments

In this blog post, we will discuss how to use conda environments to install the R kernel and program in R in Jupyter notebooks. 1. Install conda The first step in using conda environments is to install conda itself. You can download the conda installer from the Anaconda website and follow the instructions to install it on your system. Once you have conda installed, you can create and manage virtual environments. 2. Create a new conda environment To create a new conda environment, you can use the following command in your terminal: conda create -n myrenv This will create a new environment called "myenv" that you can use to manage your packages and dependencies. You can activate this environment by using the following command: conda activate myrenv 3. Install the R kernel Now that you have an active conda environment, you can use it to install the R kernel. You can do this by using the following command (you may have to press Enter key several times to finish the process): c...

Basic Git Commands and usage with GitHub

This post is a quick reference to the basic git commands and to use GitHub. Get version:   git --version Starting the process git init (Creating a git repository locally in the project folder) git status (displays the state of the working directory and the staging area) Configuring global username/email git config --global user.name '<your name>' git config --global user email '<your email>' Project management git add <filename> (adds a change in the working directory to the staging area) git add *.<filetype> (adds changes in the files with specified filetype) git add . (add all changes in the working directory to the staging area) git rm --cached <filename> (remove a file from git repository) git commit -m "<your message>" (save changes in the local repository) git branch <branch name>  (create a branch) git checkout <branch name> (switch to specified branch) git merge <branch name> (merge specified branch...