radiant-rstats / radiant

Business analytics using R and Shiny. The radiant app combines the menus from radiant.data, radiant.design, radiant.basics, radiant.model, and radiant.multivariate.
https://radiant-rstats.github.io/docs/
Other
457 stars 132 forks source link

problem installing Gmedian #56

Closed danielsender closed 6 years ago

danielsender commented 6 years ago

I'm installing Radiant for a friend of mine - I have no clue about the program, so I don't know how to fix the problem. When in Rstudio (Ubuntu 18.04) I click on Adding->Update Radiant, it would give me error messages after compilations steps, which are:

`**_ preparing package for lazy loading Warning: S3 methods ‘eigs.matrix’, ‘eigs.dgeMatrix’, ‘eigs.dgCMatrix’, ‘eigs.dgRMatrix’, ‘eigs.dsyMatrix’, ‘eigs.function’, ‘eigs_sym.matrix’, ‘eigs_sym.dgeMatrix’, ‘eigs_sym.dgCMatrix’, ‘eigs_sym.dgRMatrix’, ‘eigs_sym.function’, ‘svds.matrix’, ‘svds.dgeMatrix’, ‘svds.dgCMatrix’, ‘svds.dgRMatrix’, ‘svds.dsyMatrix’, ‘svds.function’ were declared in NAMESPACE but not found Error in namespaceExport(ns, exports) : undefined exports: eigs, eigs_sym, svds ERROR: lazy loading failed for package ‘Gmedian’

The downloaded source packages are in ‘/tmp/Rtmp5vPCUy/downloadedpackages’ Warning message: In install.packages("Gmedian") : installation of package ‘Gmedian’ had non-zero exit status****

I would appreciate any help.

Daniel `

vnijs commented 6 years ago

Gmedian is a package that radiant uses and for some reason it is not installing on your ubuntu system. I can't replicate the problem on systems I have access to. Can you run the command below and post back all output that is generated in Rstudio? Also, please provide the output from sessionInfo().

install.packages("radiant", repos = "https://radiant-rstats.github.io/minicran/")

danielsender commented 6 years ago

`Content type 'application/gzip' length 134563 bytes (131 KB)

downloaded 131 KB

The downloaded source packages are in ‘/tmp/Rtmp1txK3c/downloaded_packages’ Warning messages: 1: In install.packages("radiant", repos = "https://radiant-rstats.github.io/minicran/") : installation of package ‘Gmedian’ had non-zero exit status 2: In install.packages("radiant", repos = "https://radiant-rstats.github.io/minicran/") : installation of package ‘radiant.multivariate’ had non-zero exit status 3: In install.packages("radiant", repos = "https://radiant-rstats.github.io/minicran/") : installation of package ‘radiant’ had non-zero exit status ` Many thanks for your prompt response.

danielsender commented 6 years ago

`> sessionInfo() R version 3.4.4 (2018-03-15) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 18.04 LTS

Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1 LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1

locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages: [1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached): [1] compiler_3.4.4 tools_3.4.4 `

vnijs commented 6 years ago

That didn't help as much as I hoped it would :) Could you try the command below and report all messages? If that doesn't provide any inspiration, I'll get in touch with the package author of Gmedian for suggestions.

install.packages(c("Rcpp", "RSpectra", "robustbase", "RcppArmadillo", "Gmedian"))

danielsender commented 6 years ago

`> install.packages(c("Rcpp", "RSpectra", "robustbase", "RcppArmadillo", "Gmedian")) Installing packages into ‘/home/benji/R/x86_64-pc-linux-gnu-library/3.4’ (as ‘lib’ is unspecified) trying URL 'https://cloud.r-project.org/src/contrib/Rcpp_0.12.16.tar.gz' Content type 'application/x-gzip' length 3763400 bytes (3.6 MB)

downloaded 3.6 MB

trying URL 'https://cloud.r-project.org/src/contrib/RSpectra_0.12-0.tar.gz' Content type 'application/x-gzip' length 426762 bytes (416 KB)

downloaded 416 KB

trying URL 'https://cloud.r-project.org/src/contrib/robustbase_0.93-0.tar.gz' Content type 'application/x-gzip' length 2958250 bytes (2.8 MB)

downloaded 2.8 MB

trying URL 'https://cloud.r-project.org/src/contrib/RcppArmadillo_0.8.500.0.tar.gz' Content type 'application/x-gzip' length 1347753 bytes (1.3 MB)

downloaded 1.3 MB

trying URL 'https://cloud.r-project.org/src/contrib/Gmedian_1.2.4.tar.gz' Content type 'application/x-gzip' length 17196 bytes (16 KB)

downloaded 16 KB

The downloaded source packages are in ‘/tmp/Rtmp8mfm3p/downloaded_packages’ Warning messages: 1: In install.packages(c("Rcpp", "RSpectra", "robustbase", "RcppArmadillo", : installation of package ‘RSpectra’ had non-zero exit status 2: In install.packages(c("Rcpp", "RSpectra", "robustbase", "RcppArmadillo", : installation of package ‘Gmedian’ had non-zero exit status `

vnijs commented 6 years ago

Problem starts with rspectra. Try removing the mentioned directory and then installing rspectra again. If that succeeds try gmedian again

danielsender commented 6 years ago

Can you please tell me how to remove that directory?

vnijs commented 6 years ago

rm -rf /home/benji/R/x86_64-pc-linux-gnu-library/3.4/00LOCK-RSpectra

and maybe

rm -rf /home/benji/R/x86_64-pc-linux-gnu-library/3.4/RSpectra

danielsender commented 6 years ago

Great! That did the trick - When I installed Gmedian it automatically also installed RSpectra. Now I'm trying to figure out how to star Radiant - in the Addings drop-down menu I only see mentioned "Update radiant", how do I do that?

danielsender commented 6 years ago

I just typed install.packages("radiant"), and after appeared in the Addins menu -

Thank you very much for your help. You saved my day (and night)!

vnijs commented 6 years ago

That is, unfortunately, probably not what you want. install.packages("radiant") installs an old version of radiant. Use the command below instead. If the install is successful, you should see options to start radiant from the Addins dropdown. You can also use radiant::radiant() to start.

install.packages("radiant", repos = "https://radiant-rstats.github.io/minicran/")

danielsender commented 6 years ago

OK - So can I type your command now or I have to do some other intermediate step? Currently I can start Radiant from the Addins menu.

Thanks.

vnijs commented 6 years ago

install.packages("radiant", repos = "https://radiant-rstats.github.io/minicran/")

then start radiant from the Addins dropdown or use

radiant::radiant()

danielsender commented 6 years ago

`> install.packages("radiant", repos = "https://radiant-rstats.github.io/minicran/") Installing package into ‘/home/benji/R/x86_64-pc-linux-gnu-library/3.4’ (as ‘lib’ is unspecified) trying URL 'https://radiant-rstats.github.io/minicran/src/contrib/radiant_0.9.3.1.tar.gz' Content type 'application/gzip' length 134563 bytes (131 KB)

downloaded 131 KB

The downloaded source packages are in ‘/tmp/Rtmpb0rCty/downloaded_packages’

So, is this OK?

Thanks again.`

vnijs commented 6 years ago

Looks like it. If you can run radiant now I'll close the issue.

danielsender commented 6 years ago

Great - Now I'll let Benji run it - if there is any other issue I will post it.

Thank you very much for your time and skill.

Daniel