An error produced by installing an R package that is no longer available in the CRAN repository - r-package

The R package 'mixer' is not available in the CRAN repository. I am trying to install it in R following similar examples (see the link Install the package that has been removed from the CRAN repository easily). I am using R version 4.2.1 and have installed RTools42 on my computer (windows) and further installed 'devtools' and 'Rcpp' and invoked them from the library. To install 'mixer' I used the line of code:
install_url('https://cran.r-project.org/src/contrib/Archive/mixer/mixer_1.9.tar.gz')
but it produces the following error message
367 | call dvout (logfil, 1, rnorm0, ndigit,
| 2
......
404 | call dvout (logfil, n, resid, ndigit,
| 1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and
rank-1)
make: *** [C:/Users/YYY/AppData/Local/Programs/R/R-42~1.1/etc/x64/Makeconf:277: dgetv0.o]
Error 1
ERROR: compilation failed for package 'mixer'
* removing 'C:/Users/YYY/AppData/Local/Programs/R/R-4.2.1/library/mixer'
Warning message:
In i.p(...) :
installation of package ‘C:/Users/YYY/AppData/Local/Temp/Rtmp8AzpuR/file4fd46a5223bc/mixer_1.9.tar.gz’ had non-zero exit status
The code, however, works for similar packages that are not in the CRAN. I have spent sometime trying to resolve this error but all to no avail. Can anyone help me understand this error and how to resolve it. Many thanks for your help.

Related

Install R lgmnet package for Mac M1 chip fails

I'm trying to install R package lgmnet but failed.
the warning message
'
make: /opt/R/arm64/bin/gfortran: No such file or directory
make: *** [coxnet5dpclean.o] Error 1
ERROR: compilation failed for package ‘glmnet’
removing ‘/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/glmnet’
'
I installed gfortran as instructed in https://github.com/fxcoudert/gfortran-for-macOS/releases, but when I try to run the complier it returns error message:
'(base) MacBook-Pro:~ cheng$ gfortran
gfortran: fatal error: no input files
compilation terminated.'
I'm no pro in R or bash, could someone please help or point me to the right posts?

ACE Library in Ubuntu 20.04

I am trying to build ACE 6.4.8 under Ubuntu 20.04.
I get the following message
/ACE_wrappers/ace/os_include/os_stropts.h:56:17: fatal error: stropts.h: No such file or directory
56 | # include /**/ <stropts.h>
| ^~~~~~~~~~~
compilation terminated.
make[1]: *** [/home/ap1/Projects/ACE_wrappers/include/makeinclude/rules.local.GNU:189: .shobj/ACE.o] Error 1
make[1]: Leaving directory '/home/ap1/Projects/ACE_wrappers_6_4_8/ace'
make: *** [GNUmakefile:777: ACE] Error 2
My understanding is stropts.h header file are part of the posix C lbrary and have been removed from glibc.
Is there any work around here to compile ACE properly?
This is due to changes in Ubuntu 20.04 which is recent, the ACE version you are using is old. Please upgrade to ACE 6.5.9 which you can download from github, that includes the necessary fix.

Torch with CUDA10

I am trying to install torch with cuda10 on my raspberry pi. I am following the following github thread ( answer of nagadomi:
https://github.com/torch/cutorch/issues/834
Following all his steps still when I run ./install.sh
I get the following error
make[2]: * No rule to make target 'exe/luajit-rocks/luajit-2.1/src/lib_ffi.c', needed by 'exe/luajit-rocks/luajit-2.1/vmdef.lua'. Stop.
make[1]: * [CMakeFiles/Makefile2:212: exe/luajit-rocks/luajit-2.1/CMakeFiles/luajit-static.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
./install.sh: line 107: /home/pi/torch/install/bin/luarocks: No such file or directory
Installing common Lua packages
./install.sh: line 111: /home/pi/torch/install/bin/luarocks: No such file or directory
I have now spent a week just trying to setup torch with CUDA.
Basically I need cutorch library and it is not installing from `luarocks install cutorch
Can anyone help me please?

Build OpenCV binding in Haskell for OpenCV 2.4

I tried to install cv library via cabal (cabal install cv).
But it brings me up an error:
Configuring CV-0.3.7...
Building CV-0.3.7...
Preprocessing library CV-0.3.7...
c2hs: C header contains errors:
dist/build/CV/Video.chs.h:22: (column 39) [ERROR] >>> Unknown identifier!
Cannot find a definition for `CV_CAP_PROP_WHITE_BALANCE_BLUE_U' in the header file.
cabal: Error: some packages failed to install:
CV-0.3.7 failed during the building phase. The exception was:
ExitFailure 1
I have read that it's problem is, that my install opencv is newer than the haskell-library needs it.
My opencv:
local/opencv 2.4.12.2-2
Open Source Computer Vision Library
So how can I fix this error now? Thanks for your help!

Installing Zend Framework 2 using pyrus

I'm getting an error when trying to download Zend Framework2 view pyrus. Here is the error:
# php pyrus.phar . install zf2/Zend_Framework#Standard
Using PEAR installation found at /usr/share/pear/pyrus
PHP Warning: Invalid argument supplied for foreach() in phar:///usr/share/pear/pyrus/pyrus.phar/Pyrus_Pharer-0.1.0/php/Pyrus/Package/Dependency/Set/PackageTree.php on line 91
PHP Notice: Undefined variable: extra in phar:///usr/share/pear/pyrus/pyrus.phar/Pyrus_Pharer-0.1.0/php/Pyrus/Package/Dependency/Set/PackageTree.php on line 277
Pyrus\Installer\Exception: Dependency validation failed for some packages to install, installation aborted
Pyrus\Package\Dependency\Set\Exception: No versions of </< or of its dependencies that can be installed because of
I installed pyrus in "usr/share/pear/pyrus/".
Any ideas why it's not working? I even tried to install another Zend library like this and I get the same error message.
$ php pyrus.phar . install zf2/Zend_Http
Listing channels I get this:
[root#apollo pyrus]# php pyrus.phar list-channels
Using PEAR installation found at /usr/share/pear/pyrus
Listing channels [/usr/share/pear/pyrus]:
__uri (__uri)
doc.php.net (phpdocs)
packages.zendframework.com (zf2)
pear.php.net (pear)
pear2.php.net (pear2)
pecl.php.net (pecl)
pyrus.net (pyrus)
Then when I try to get the remote list of packages from zf2 it gives me an error:
# php pyrus.phar remote-list zf2
Using PEAR installation found at /usr/share/pear/pyrus
Remote packages for channel zf2:
PHP Warning: current() expects parameter 1 to be array, string given in phar:///usr/share/pear/pyrus/pyrus.phar/Pyrus_Pharer-0.1.0/php/Pyrus/Channel/RemoteCategories.php on line 66
It seems there must be an error in the Zends repository, because if I list them for pear I get a full list of them using this:
# php pyrus.phar remote-list pear
Am I doing something wrong?
thank you
FWIW I get exactly the same as you and am assuming the Zend repo is messed up - I cannot begin to guess the timescale to expect it might cease to be messed up. I've switched to using a composer package installer instead and that seems more promising ;)
M

Resources