modelbased icon indicating copy to clipboard operation
modelbased copied to clipboard

Unable to install package on cran

Open kittysher opened this issue 1 year ago • 4 comments

Hello,

I am trying to install the whole easystats package but I am getting an error with modelbased which means I can't install the dependencies I need. I am running this on an internal server which doesn't allow me to access github urls. When I run install.packages("modelbased")

I get the error:

Error in parse(outFile): 
get_marginalmeans.R:50:44: unexpected '>'
49: # Format
50: params <- parameters::parameters(means) |>
                                                                            ^
Unable to collate and parse R files for package 'modelbased'

I am using R v4.0.2. Could you please help me work out if this is an issue with the package or an issue somewhere in the internal server?

Many thanks Kitty

kittysher avatar May 17 '24 10:05 kittysher

That should be fixed, but the issue is that the package uses the R pipe |>, which was introduced in R 4.1. If you upgrade to the current version of R (4.4) or any version after 4.1, the package will install.

@strengejacke @IndrajeetPatil @DominiqueMakowski

bwiernik avatar May 17 '24 11:05 bwiernik

This is already fixed on Github: https://github.com/easystats/modelbased/pull/252

We just need to create a new release.

IndrajeetPatil avatar May 17 '24 11:05 IndrajeetPatil

@DominiqueMakowski Can you please create a new release to resolve this issue?

IndrajeetPatil avatar May 22 '24 08:05 IndrajeetPatil

We should wait until https://github.com/easystats/easystats/issues/404 is resolved, there are some places in the code of modelbased where we have to make changes.

strengejacke avatar May 22 '24 08:05 strengejacke