followed the steps below to install QuantLib on OSX and it went smoothly:
http://quantlib.org/install/macosx.shtml
Then trying to install RQuantLib. First download the source, unzipped and executed the following command from Terminal, with the error messages below:
$ R CMD INSTALL RQuantLib
Loading required package: DBI
Loading required package: rJava
Error in .jfindClass(as.character(driverClass)[1]) : class not found
Calls: JDBC -> is.jnull -> .jfindClass
Execution halted
Tried directly in R, same issue:
> install.packages("RQuantLib")
Loading required package: DBI
Loading required package: rJava
Error in .jfindClass(as.character(driverClass)[1]) : class not found
Calls: JDBC -> is.jnull -> .jfindClass
Execution halted
Warning in install.packages :
installation of package ‘RQuantLib’ had non-zero exit status
Tried reinstalling RJDBC in R, no success either. Somehow I can't get this to work, and am stuck now.
Any help is highly appreciated, thanks.
Related
I have python and Giotto installed on my Mac M1 chip laptop.
When I try to install another package called "GiottoData" using any of the below three methods: I get this error:
remotes::install_github("drieslab/GiottoData")
#Error: package ‘Giotto’ 1.1.2 was found, but >= 3.0.0 is required by ‘GiottoData’
Execution halted
ERROR: lazy #loading failed for package ‘GiottoData’
#removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/GiottoData’
Warning message:
In #i.p(...) :
installation of package ‘/var/folders/v9/GiottoData_0.2.0.tar.gz’ had non-zero exit status
Is there a higher version of Giotto that is required to install GiottoData?
I want to install the CBNplot package on GitHub:
Making the website:https://github.com/noriakis/CBNplot
Try two methods:
The first is direct download:
The following error occurs:
devtools::install_github("noriakis/CBNplot")
Installing package into ‘C:/Users/sjadsqf/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
installing source package 'CBNplot' ...
** using staged installation
** R
** data
** byte-compile and prepare package for lazy loading
Error: object 'choose.direction' is not exported by 'namespace:bnlearn'
Execution halted
ERROR: lazy loading failed for package 'CBNplot'
removing 'C:/Users/sjadsqf/Documents/R/win-library/4.1/CBNplot'
Warning message:
In i.p(...) :
installation of package ‘C:/Users/sjadsqf/AppData/Local/Temp/RtmpMHHiTR/file555833c63074/CBNplot_0.99.2.tar.gz’ had non-zero exit status
Then I tried the second method
pkgbuild::build("D:/R/CBNplot-main",
dest_path = "D:/R/library/")
Error: object 'choose.direction' is not exported by 'namespace:bnlearn'
Execution halted
ERROR: lazy loading failed for package 'CBNplot'
removing 'C:/Users/sjadsqf/AppData/Local/Temp/Rtmp2F15K6/Rinst5c845a222d2f/CBNplot'
-----------------------------------
ERROR: package installation failed
Error in (function (command = NULL, args = character(), error_on_status = TRUE, ...:
! System command 'Rcmd.exe' failed
Exit status: 1
stdout & stderr:
i notice that error
Error: object 'choose.direction' is not exported by 'namespace:bnlearn'
So I tried to install belearn,After the installation is complete, the above error still appears in the operation
If you look at the changelog for the package bnlearn, it says
Version 4.8
...
removed choose.direction().
The lastest version of bnlearn therefore does not have the choose.direction function that the earlier versions had. Obviously, the CBNplot package uses this function, so the update in bnlearn has effectively broken the existing version of CBNplot.
The solution is to install an earlier version of bnlearn. For example, if I do
remove.packages('bnlearn')
devtools::install_version('bnlearn', version = '4.7')
devtools::install_github("noriakis/CBNplot")
and skip any package updates that are offered, I can install the package without difficulties.
I'm having the following problem:
When I try to install any R package, at first it downloads the package just fine into a temporal location, and then the following error message appears:
Error: package ‘usethis’ required by ‘devtools’ could not be found
Execution halted
Warning in install.packages :
installation of package ‘lattice’ had non-zero exit status
The wierd part of this is that package usethis is installed and loaded.
Any advise on what can be happening here? I'm a lost there..
I am working on Bayesian inference and I want to install bayesVAR_TVP package from Github. I tried the following commands:
install.packages("devtools")
library(devtools)
install_github("GediminasB/bayesVAR_TVP")
and
install.packages("githubinstall")
gh_install_packages("bayesVAR_TVP")
In both case I received the following error:
Error: package or namespace load failed for 'bayesVARTVP' in library.dynam(lib, package, package.lib):
DLL 'bayesVAR' not found: maybe not installed for this architecture?
Error: loading failed
Execution halted
*** arch - x64
Error: package or namespace load failed for 'bayesVARTVP' in library.dynam(lib, package, package.lib):
DLL 'bayesVAR' not found: maybe not installed for this architecture?
Error: loading failed
Execution halted
ERROR: loading failed for 'i386', 'x64'
* removing 'C:/Users/Hamed/Documents/R/win-library/3.4/bayesVARTVP'
In R CMD INSTALL
Installation failed: Command failed (1)
I have checked some similar questions on this site but they could not help me. I am working on a Win 7 64b and R 3.4.3. Also, my friend has a similar error on mac system. Does anyone have any idea? Thanks beforehand.
Hope somebody could help me .. I'm trying to install the mzmatch.R package for metabolomics, following the instructions here: http://mzmatch.sourceforge.net/tutorial.mzmatch.r.php
I'm completely new to R so this is my first time doing this sort of thing. First, I downloaded the latest version of R and installed it on Mac OSX 10.7. This is the version of R that I have running:
R 2.15.0 GUI 1.51 Leopard build 64-bit (6148)
Then I launched R64.app and typed the following commands (as specified in the instructions in the link above) to install the package and all its dependencies.
> source("http://bioconductor.org/biocLite.R")
> biocLite(c("faahKO", "xcms", "multtest"))
> install.packages(c("rJava","XML","snow","caTools","bitops","ptw"))
> source ("http://puma.ibls.gla.ac.uk/mzmatch.R/install_mzmatch.R")
The last step will always fail with the following message:
trying URL 'http://puma.ibls.gla.ac.uk/mzmatch.R/mzmatch.R.tar.gz'
Content type 'application/x-gzip' length 104535 bytes (102 Kb)
opened URL
==================================================
downloaded 102 Kb
* installing *source* package ‘mzmatch.R’ ...
** R
** preparing package for lazy loading
Error : .onLoad failed in loadNamespace() for 'mzR', details:
call: value[[3L]](cond)
error: failed to load module Ramp from package mzR
could not find function "errorOccured"
Error : package ‘mzR’ could not be loaded
ERROR: lazy loading failed for package ‘mzmatch.R’
* removing ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library/mzmatch.R’
Warning message:
In install.packages(pkgs = "mzmatch.R.tar.gz", repos = NULL, type = "source") :
installation of package ‘mzmatch.R.tar.gz’ had non-zero exit status
I thought this was because the library "mzR" cannot be loaded, so I tried:
> biocLite("mzR")
> library("mzR")
and sure enough, the same error appeared:
Loading required package: Rcpp
Error : .onLoad failed in loadNamespace() for 'mzR', details:
call: value[[3L]](cond)
error: failed to load module Ramp from package mzR
could not find function "errorOccured"
Error: package/namespace load failed for ‘mzR’
I'm quite lost now, and not sure what to do at all. Thanks for reading !
Assuming you are running mzR v1.2.1 and Rcpp v0.9.12, the problem you see is an unfortunate and unexpected incompatibility between the two. In the meantime, downgrading to Rcpp_0.9.10.zip will fix the issue. Hope to commit a proper fix soon.
Laurent
UDAPE: The issue was the result of compiler/linker error and required a fresh mzR build, which is now available through biocLite.