How To Install r-cran-pwt on Ubuntu 18.04

In this tutorial we learn how to install r-cran-pwt on Ubuntu 18.04. r-cran-pwt is GNU R package for the Penn World Tables (version 5.6 to 7.1)

Introduction

In this tutorial we learn how to install r-cran-pwt on Ubuntu 18.04.

What is r-cran-pwt

r-cran-pwt is:

This package contains the Penn World Tables (PWT), which provide purchasing power parity (PPP) and national income accounts converted to international prices for 189 countries for some or all the years 1950-2010. The data are developed and maintained by scholars at the Center for International Comparisons of Production, Income and Prices (CIC) from the University of Pennsylvania.

The package contains all the releases of the PWT from version 5.6 to 7.1, which were created by the University of Pennsylvania. Note that more recent versions of the PWT have been created by the University of California, Davis and the University of Groningen, and are available in the r-cran-pwt8 and r-cran-pwt9 packages.

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

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

Install r-cran-pwt Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install r-cran-pwt

Install r-cran-pwt 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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install r-cran-pwt

How To Uninstall r-cran-pwt on Ubuntu 18.04

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

sudo apt-get remove r-cran-pwt

Uninstall r-cran-pwt And Its Dependencies

To uninstall r-cran-pwt and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

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

Remove r-cran-pwt Configurations and Data

To remove r-cran-pwt configuration and data from Ubuntu 18.04 we can use the following command:

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

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

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

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

References

Summary

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