PC: Monster ABRA A5
R Version: R-4.2.1
Hello, I’m trying to install RNCEP package to Rstudio but I’m getting this errors:
Console output is;
> install.packages("RNCEP")
Installing package into ‘/home/vokhirion/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/RNCEP_1.0.10.tar.gz'
Content type 'application/x-gzip' length 302209 bytes (295 KB)
==================================================
downloaded 295 KB
* installing *source* package ‘RNCEP’ ...
** package ‘RNCEP’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Warning: S3 methods ‘as.character.tclObj’, ‘as.character.tclVar’, ‘as.double.tclObj’, ‘as.integer.tclObj’, ‘as.logical.tclObj’, ‘as.raw.tclObj’, ‘print.tclObj’, ‘[[.tclArray’, ‘[[<-.tclArray’, ‘$.tclArray’, ‘$<-.tclArray’, ‘names.tclArray’, ‘names<-.tclArray’, ‘length.tclArray’, ‘length<-.tclArray’, ‘tclObj.tclVar’, ‘tclObj<-.tclVar’, ‘tclvalue.default’, ‘tclvalue.tclObj’, ‘tclvalue.tclVar’, ‘tclvalue<-.default’, ‘tclvalue<-.tclVar’, ‘close.tkProgressBar’ were declared in NAMESPACE but not found
Error: .onLoad failed in loadNamespace() for 'tcltk', details:
call: fun(libname, pkgname)
error: Tcl/Tk support is not available on this system
Execution halted
ERROR: lazy loading failed for package ‘RNCEP’
* removing ‘/home/vokhirion/R/x86_64-pc-linux-gnu-library/4.2/RNCEP’
Warning in install.packages :
installation of package ‘RNCEP’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpCYYwmk/downloaded_packages’
and Background Jobs output is;
Installing 'RNCEP' ...
Installing package into ‘/home/vokhirion/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/RNCEP_1.0.10.tar.gz'
Content type 'application/x-gzip' length 302209 bytes (295 KB)
==================================================
downloaded 295 KB
* installing *source* package ‘RNCEP’ ...
** package ‘RNCEP’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Warning: S3 methods ‘as.character.tclObj’, ‘as.character.tclVar’, ‘as.double.tclObj’, ‘as.integer.tclObj’, ‘as.logical.tclObj’, ‘as.raw.tclObj’, ‘print.tclObj’, ‘[[.tclArray’, ‘[[<-.tclArray’, ‘$.tclArray’, ‘$<-.tclArray’, ‘names.tclArray’, ‘names<-.tclArray’, ‘length.tclArray’, ‘length<-.tclArray’, ‘tclObj.tclVar’, ‘tclObj<-.tclVar’, ‘tclvalue.default’, ‘tclvalue.tclObj’, ‘tclvalue.tclVar’, ‘tclvalue<-.default’, ‘tclvalue<-.tclVar’, ‘close.tkProgressBar’ were declared in NAMESPACE but not found
Error: .onLoad failed in loadNamespace() for 'tcltk', details:
call: fun(libname, pkgname)
error: Tcl/Tk support is not available on this system
Execution halted
ERROR: lazy loading failed for package ‘RNCEP’
* removing ‘/home/vokhirion/R/x86_64-pc-linux-gnu-library/4.2/RNCEP’
The downloaded source packages are in
‘/tmp/RtmpPzEUVX/downloaded_packages’
✔ Package 'RNCEP' successfully installed.
Warning message:
In utils::install.packages("RNCEP", repos = "https://cran.rstudio.com/") :
installation of package ‘RNCEP’ had non-zero exit status
I had the same issues some other packages but I can find them in aur and I installed them with yay, but I couldn’t find anything for RNCEP. There is some solutions that solved same problem at other users’ Ubuntu but their error caused by lack of dependencies, I installed all dependencies but error still occurs. Then I find this solution for Debian;
https://stackoverflow.com/questions/11875307/how-to-install-tcltk-in-r
But I couldn’t figure it out how did I convert these on arch-based. So is there any solution for arch-based, can you help me please?
my library(tcltk)
output is;
Error: package or namespace load failed for ‘tcltk’:
.onLoad failed in loadNamespace() for 'tcltk', details:
call: fun(libname, pkgname)
error: Tcl/Tk support is not available on this system
In addition: Warning message:
S3 methods ‘as.character.tclObj’, ‘as.character.tclVar’, ‘as.double.tclObj’, ‘as.integer.tclObj’, ‘as.logical.tclObj’, ‘as.raw.tclObj’, ‘print.tclObj’, ‘[[.tclArray’, ‘[[<-.tclArray’, ‘$.tclArray’, ‘$<-.tclArray’, ‘names.tclArray’, ‘names<-.tclArray’, ‘length.tclArray’, ‘length<-.tclArray’, ‘tclObj.tclVar’, ‘tclObj<-.tclVar’, ‘tclvalue.default’, ‘tclvalue.tclObj’, ‘tclvalue.tclVar’, ‘tclvalue<-.default’, ‘tclvalue<-.tclVar’, ‘close.tkProgressBar’ were declared in NAMESPACE but not found
capabilities()["tcltk"]
output is:
tcltk
FALSE