Open In App

How To Install r-cran-nnet on Ubuntu 20.04

Last Updated : 07 Nov, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

R is an open-source programming language for statistical computing and graphics supported by the R Core Team and the R Foundation for Statistical Computing. It is the most commonly used programming language in data mining. 

In this article, we’re going to install the r-cran-nnet package. nnet is an R language package for feed-forward neural networks with a single hidden layer, for multinomial log-linear models and making predictions on input data which will be classified later. For more information visit https://cran.r-project.org/package=nnet

Installation

Step 1: Update the apt packages cache to get the latest package available in the ubuntu repository

sudo apt update

 

Step 2: Install R language (If you haven’t installed it)

sudo apt install -y r-base-core

 

Step 3: Verify the R version

 

Step 4: Start the R console by typing R in your terminal to install the required package

 

As you can see we get the R console, which means that we’ve successfully installed the R language, here we can do whatever we want in our case install the nnet package.

Step 5: Install the r-cran-nnet package by issuing the following command in the R console.

install.packages("nnet")

 

Step 6: Verify the package installation

find.package("nnet")

 

As you can see above we get the location of the package where it is installed which means that we’ve successfully installed the r-cran-nnet package. 


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads