Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation of the FastinR package #31

Open
LoouiseM opened this issue Jun 22, 2021 · 2 comments
Open

Installation of the FastinR package #31

LoouiseM opened this issue Jun 22, 2021 · 2 comments

Comments

@LoouiseM
Copy link

Dear authors,

I am trying to install the FastinR package and I am facing an issue during the installation of the package.

This is the script for the installation of all necessary packages:
library(usethis)
library(devtools)
library(rjags)
library(lme4)
library(GGally)
require('devtools')
install_github("philipp-neubauer/fastinR/fastinR")

And this is the error occurring when I run the last command:
Error: (converted from warning) package ‘rjags’ was built under R version 4.0.2
Execution halted
ERROR: lazy loading failed for package ‘fastinR’

  • removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/fastinR’
    Error: Failed to install 'fastinR' from GitHub:
    (converted from warning) installation of package ‘/var/folders/rm/gqgn7gzx3hvf9rg_kw_qx_w40000gn/T//RtmpPqznTI/fileb7743dcb9/fastinR_0.4.tar.gz’ had non-zero exit status

Would you have any idea on how to solve this issue ? I am using the last version of RStudio on a Macbook, and both XQuartz and Xcode-beta are installed.

Thank you in advance,

Louise

@Philipp-Neubauer
Copy link
Owner

Hi Louise -

it seems an issues with the rjags install not being compatible. What R version are you running?

Also, I would recommend trying the more recent version on the stan branch of this repo. I have just made that the default, so that a remotes::install_github("philipp-neubauer/fastinR/fastinR") should install the stan branch. If not, you may need to specify the branch in that command. You'll need a working install of rstan for that branch to work as I switched the backend from rjags to rstan.

Hope this helps
Phil

@LoouiseM
Copy link
Author

LoouiseM commented Jul 7, 2021

Hi Philipp,

Thank you very much for your answer.

I am using the R version 4.0.0.
I followed your recommendation and the installation of the package worked!

Thank you so much for your help,

Best,

Louise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants