tsoutliers dependency issue: dependency KFKSDS has non-zero exit status? - r

While working on outlier detection on a time series data. I came across [tsoutliers][1] packages that does implement Chen and Liu's time series outlier detection. But I am unable to install tsoutliers in R
install.packages("tsoutliers")
I am getting the following dependency errors
In file included from KF-deriv.cpp:1:0: KFKSDS.h:14:28: fatal error:
gsl/gsl_vector.h: No such file or directory compilation terminated.
/usr/lib/R/etc/Makeconf:143: recipe for target 'KF-deriv.o' failed
make: *** [KF-deriv.o] Error 1 ERROR: compilation failed for package
‘KFKSDS’
* removing ‘/home/atoffy/R/x86_64-pc-linux-gnu-library/3.2/KFKSDS’ Warning in install.packages : installation of package ‘KFKSDS’ had
non-zero exit status ERROR: dependency ‘KFKSDS’ is not available for
package ‘stsm’
* removing ‘/home/atoffy/R/x86_64-pc-linux-gnu-library/3.2/stsm’ Warning in install.packages : installation of package ‘stsm’ had
non-zero exit status ERROR: dependencies ‘stsm’, ‘KFKSDS’ are not
available for package ‘tsoutliers’
* removing ‘/home/atoffy/R/x86_64-pc-linux-gnu-library/3.2/tsoutliers’ Warning in install.packages : installation of package ‘tsoutliers’
had non-zero exit status
More specifically
recipe for target 'KF-deriv.o' failed
Can anyone help me to install the same?

I was able to solve the same by installing
libgsl0
sudo apt-get install libgsl0-dev

Related

Errors when trying to install 'semPlot' R package

I'm trying to install the package 'semPlot' in RStudio, and keep getting errors:
** testing if installed package can be loaded from temporary location
*** arch - i386
Error: package or namespace load failed for 'rockchalk' in library.dynam(lib, package, package.lib):
DLL 'zip' not found: maybe not installed for this architecture?
Error: loading failed
Execution halted
*** arch - x64
ERROR: loading failed for 'i386'
* removing 'C:/Documents/R/win-library/4.0/rockchalk'
Warning in install.packages :
installation of package ‘rockchalk’ had non-zero exit status
ERROR: failed to lock directory 'C:/Documents/R/win-library/4.0' for modifying
Try removing 'C:/Documents/R/win-library/4.0/00LOCK-OpenMx'
Warning in install.packages :
installation of package ‘OpenMx’ had non-zero exit status
ERROR: dependencies 'rockchalk', 'OpenMx' are not available for package 'semPlot'
* removing 'C:/Documents/R/win-library/4.0/semPlot'
Warning in install.packages :
installation of package ‘semPlot’ had non-zero exit status
The downloaded source packages are in
‘C:\AppData\Local\Temp\RtmpE9qK0s\downloaded_packages’
I already installed the package ‘rockchalk’, but it didn't help.
The first time I tried to install 'semPlot' there was an almost endless process which also ended with an error.
You could use the install_github function to install R packages hosted on GitHub from the devtools package. Here is a reproducible example:
devtools::install_github('SachaEpskamp/semPlot')
library(semPlot)
Created on 2022-11-14 with reprex v2.0.2
I solved it by uninstalling R and RStudio, and then installing them, and googling a small problem that came up with tydiverse.

How can I install rayshader on an AWS machine?

I have been trying to solve this problem for a few hours but I can't find any way to do it. The command that I have used is: install.packages("rayshader")
I have tried to install the 'rayshader' package on an AWS machine with an EC2 instance. The intention of this installation is to be able to run a make command for the auto creation of a RMD report containing 3D graphics from 'rayshader'.
The errors returned by the execution are as follows:
make: *** [RcppArmadillo.so] Error 1
ERROR: compilation failed for package ‘RcppArmadillo’
* removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.4/RcppArmadillo’
ERROR: dependencies ‘jpeg’, ‘RcppArmadillo’ are not available for package ‘rayimage’
* removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.4/rayimage’
ERROR: dependencies ‘raster’, ‘rayimage’, ‘RcppArmadillo’ are not available for package ‘rayshader’
* removing ‘/home/ubuntu/R/x86_64-pc-linux-gnu-library/3.4/rayshader’
The downloaded source packages are in
‘/tmp/RtmpDWE73c/downloaded_packages’
Warning messages:
1: In install.packages("rayshader") :
installation of package ‘jpeg’ had non-zero exit status
2: In install.packages("rayshader") :
installation of package ‘RcppArmadillo’ had non-zero exit status
3: In install.packages("rayshader") :
installation of package ‘rayimage’ had non-zero exit status
4: In install.packages("rayshader") :
installation of package ‘rayshader’ had non-zero exit status
Please, any help would be greatly appreciated!

Can't install Codebook package in R

I am attempting to install the R package "codebook" on OSX. I receive the following error message. I receive similar error messages when I try to independently install these dependencies. Is there a way that I install via the terminal or otherwise install these dependencies?
My apologies if this is not enough information in order to provide guidance. Please let me know and I would be happy to provide additional context. I am using RStudio Version 1.0.136
Thank you
ERROR: compilation failed for package ‘RcppEigen’
installation of package ‘RcppEigen’ had non-zero exit status
ERROR: dependencies ‘lavaan’, ‘OpenMx’, ‘semTools’ are not available for package ‘MBESS’
installation of package ‘MBESS’ had non-zero exit status
ERROR: dependency ‘igraph’ is not available for package ‘DiagrammeR’
installation of package ‘DiagrammeR’ had non-zero exit status
ERROR: dependency ‘RcppEigen’ is not available for package ‘lme4’
installation of package ‘lme4’ had non-zero exit status
ERROR: dependency ‘DiagrammeR’ is not available for package ‘data.tree’
installation of package ‘data.tree’ had non-zero exit status
ERROR: dependencies ‘car’, ‘data.tree’, ‘DiagrammeR’, ‘lavaan’, ‘lme4’, ‘MBESS’ are not
available for package ‘userfriendlyscience’
* removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/userfriendlyscience’
Warning in install.packages :
installation of package ‘userfriendlyscience’ had non-zero exit status
ERROR: dependency ‘userfriendlyscience’ is not available for package ‘codebook’
* removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/codebook’

Error: installation of package ‘ranger’ had non-zero exit status

I am experiencing great difficulties in installing the package ranger. Here is the error message that I am getting:
ERROR: compilation failed for package ‘ranger’
* removing ‘/home/ibraim/R/x86_64-pc-linux-gnu-library/3.5/ranger’
Warning in install.packages :
installation of package ‘ranger’ had non-zero exit status
I also tried the installation by using devtools, which did not work. Do you have any suggestion how to solve this problem?

R: Can't install certain packages

I noticed that I am unable to install a bunch of packages. It started then I was trying to install the package carat. I would get this long error.
ERROR: compilation failed for package ‘robustbase’
* removing ‘/Users/regiswengel/anaconda/lib/R/library/robustbase’
Warning in install.packages :
installation of package ‘robustbase’ had non-zero exit status
ERROR: dependency ‘robustbase’ is not available for package ‘ddalpha’
* removing ‘/Users/regiswengel/anaconda/lib/R/library/ddalpha’
Warning in install.packages :
installation of package ‘ddalpha’ had non-zero exit status
ERROR: dependency ‘ddalpha’ is not available for package ‘recipes’
* removing ‘/Users/regiswengel/anaconda/lib/R/library/recipes’
Warning in install.packages :
installation of package ‘recipes’ had non-zero exit status
ERROR: dependency ‘recipes’ is not available for package ‘caret’
* removing ‘/Users/regiswengel/anaconda/lib/R/library/caret’
Warning in install.packages :
installation of package ‘caret’ had non-zero exit status
installing the dependencies ‘robustbase’, ‘ddalpha’, ‘recipes’ individually beforehand doesn't work either.
I also noticed that I am unable to update the packages
cluster
glmnet
maps
PKI
a bunch of others
I'm currently using R version 3.3.2 and RStudio Version 1.0.136. I have been using R and RStudio for months and have never had an issues installing packages. I have done a bunch of searching on Google and Stack-overflow and found some solutions. None of them have worked for me.
The error in my output was
gfortran -fPIC -I/Users/UserName/anaconda/include -L/Users/UserName/anaconda/lib -c eigen.f -o eigen.o
make: gfortran: No such file or directory
I found this thread that provided me with the answer I needed.
OS X package installation depends on gfortran-4.8

Resources