jeroen / V8

Embedded JavaScript Engine for R
https://cran.r-project.org/package=V8
Other
200 stars 29 forks source link

Installing V8 R package in a Conda Environment #102

Closed sreedta8 closed 4 years ago

sreedta8 commented 4 years ago

Sytem and Software specifications:

  1. OS: Ubuntu 20.04

  2. Python via Anaconda 64-bit: Using both versions 3.8 and 3.6

  3. R (installed via Conda): as r-base version 3.6.1

  4. V8 packages: tried V8_2.3.tar.gz and V8_3.2.tar.gz (tried to install both as local files and from CRAN mirrors)

  5. Ubuntu has *libnode-dev already installed

  6. I also installed libv8 from Anaconda channel

I get the following error in bold text. I'm posting the entire compilation output for reference. It compiles okay and fails when testing to check if the library can be loaded from the temporary location.

install.packages("V8") --- Please select a CRAN mirror for use in this session --- trying URL 'https://cloud.r-project.org/src/contrib/V8_3.2.0.tar.gz' Content type 'application/x-gzip' length 680510 bytes (664 KB)

downloaded 664 KB

The downloaded source packages are in ‘/tmp/RtmpeoC9sK/downloaded_packages’ Updating HTML index of packages in '.Library' Making 'packages.html' ... done Warning message: In install.packages("V8") : installation of package ‘V8’ had non-zero exit status.

I have reinstalled Rcppand tried to run install.packages() againbut without success.

What can and what should I do to get this correct?

Sree

jeroen commented 4 years ago

Can you just install r-v8 from conda forge?

sreedta8 commented 4 years ago

Thanks for the quick reply. I'm a bit of a newbie on the Ubuntu side and I did not check thoroughly for this at Anaconda. I will let you know how it goes @jeroen

sreedta8 commented 4 years ago

@jeroen thank you so much - it worked exactly as it should. I have been working with @adamhaber, who has developed a Python front end called pybrms (hosted on GitHub) to brms a very good Bayesian modeling package in R (which itself is a front end to Stan probabilistic language). I have been working on setting up pybrms on both Windows and Ubuntu OS. On the Ubuntu side is where I ran into a lot of issues. I cannot thank you enough - my environment with rpy2, R,and pybrms is working now on Ubuntu