পৃষ্ঠাসমূহ

বৃহস্পতিবার, ২০ অক্টোবর, ২০১৬

Solution of problem installing R package in Ubuntu

Sometimes we want to install a package in R via using R console. But we may face problem if our R version is older . It may show errors like this one.
Warning in install.packages :
  package ‘ggplot2’ is not available (for R version 3.0.2)
This kind of package installation problem in Ubuntu linux can be fixed by installing the packaged version distributed by Ubuntu. We need to run  the following command in the terminal.


sudo apt-get install r-cran-packagename
Replace packagename with the package you want to install. In case of ggplot2 we need to run the following command.

sudo apt-get install r-cran-ggplot2

রবিবার, ১৬ অক্টোবর, ২০১৬

Solution of problem installing RODBC package on Ubuntu Linux

When trying to install RODBC package when the following error occurs : 
configure: error: "ODBC headers sql.h and sqlext.h not found"
ERROR: configuration failed for package ‘RODBC’
* removing ‘/home/username/R/x86_64-pc-linux-gnu-library/3.0/RODBC’

Cause:  headers sql.h and sqlext.h header files is not install . We need to install package which contains these headers. 

Solution:  Run the following in the terminal and install the  packages libiodbc2-dev libiodbc2 . After finishing installation of packages try reinstalling "RODBC" from R console.

sudo apt-get install libiodbc2-dev libiodbc2