Coder Social home page Coder Social logo

Comments (11)

DominiqueMakowski avatar DominiqueMakowski commented on June 22, 2024

Short answer

Try re-installing all report's dependencies from github as follows:

install.packages("devtools")
devtools::install_github("easystats/easystats")

Does it work then?

Long answer

@DanDKL, as you might know, report is a very recent package, still not stable (that's why it is not yet on CRAN) and in active development. This active development can lead to frequent updates, changes and breaks (although we try to avoid them as much as possible). (That's why it might work for your colleague that has an older version and not with yours 😅)

The major part of this instability is due to the fact that report relies heavily on two other packages, namely parameters and performance, which themselves are not yet "stable" (but we're getting there). That's why it is possible that we updated something there which then broke the whole thing.

Thus, while we work on having the ecosystem stable and bug-free, we recommend installing all the most recent versions of the easystats packages (the collection of packages to which report belong), directly from github. This can be done by either installing easystats (see above), or forced by running:

easystats::install_easystats_latest()

Also, please do report any bug, issue, feelings or suggestions that could help us making these tools. If you have any issues, we are generally quite reactive and will try to make it work.

We apologise in advance for the issues related to this "early-access" nature of report, and hope that it is worth the trouble 😉

from report.

DanDKL avatar DanDKL commented on June 22, 2024

Hi @DominiqueMakowski,
thank you very much for your reply and do no apologize. You all are doing great work that is useful for a lot of people :)

regarding the short answer... I forgot to mention that Yes, the other day I also tried to run all the dependencies installing easy stats with the same code:

install.packages("devtools")
devtools::install_github("easystats/easystats")

But nothing changed.

If I run the command now I get the same zero exit error on the parameters package:

Installing package into ‘C:/Users/DDL/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)

  • installing source package 'parameters' ...
    ** R
    Error : (contertito da avviso) namespace 'caret' is not available and has been replaced
    by .GlobalEnv when processing object 'classify_distribution'
    ERROR: unable to build sysdata DB for package 'parameters'
  • removing 'C:/Users/DDL/Documents/R/win-library/3.5/parameters'
  • restoring previous 'C:/Users/DDL/Documents/R/win-library/3.5/parameters'
    In R CMD INSTALL
    Error in i.p(...) :
    (converted from warning) installation of package ‘C:/Users/DDL/AppData/Local/Temp/RtmpeqBQm8/fileac050ac36c2/parameters_0.1.0.tar.gz’ had non-zero exit status

And the installation gets terminated.
Other packages seem to have installed, although some of them are skipped:

Skipping install of 'bayestestR' from a github remote, the SHA1 (e7ea39b7) has not changed since last install.
Use force = TRUE to force installation

Unfortunately, I still got the problem:

r <- report::report(fit1)
Error: 'rope_bounds' is not an exported object from 'namespace:bayestestR'

on the other hand the following code does not work for me either...

library(easystats)
easystats::install_easystats_latest()

library(easystats)
Attaching package: ‘insight’
The following object is masked from ‘package:psycho’:
get_data
Carico il pacchetto richiesto: performance
Carico il pacchetto richiesto: bayestestR
Attaching package: ‘bayestestR’
The following objects are masked from ‘package:psycho’:
rnorm_perfect, rope
Carico il pacchetto richiesto: parameters
Attaching package: ‘parameters’
The following object is masked from ‘package:bayestestR’:
ci
The following object is masked from ‘package:insight’:
get_priors
The following objects are masked from ‘package:psycho’:
odds_to_probs, standardize
Carico il pacchetto richiesto: correlation
Attaching package: ‘correlation’
The following object is masked from ‘package:psycho’:
correlation
Carico il pacchetto richiesto: see
easystats::install_easystats_latest()
Error: 'install_easystats_latest' is not an exported object from 'namespace:easystats'

I'd like to point out that I'm no expert in R at all :)
so it could be something silly and trivial that I'm missing, and I have to apologize for that :D

from report.

strengejacke avatar strengejacke commented on June 22, 2024

The methods mentioned were not exported yet... I tried to fix this here:
easystats/easystats@781e71e

Either, re-install easystats from GitHub, or - without needing to re-install - use:

easystats:::install_easystats_latest()

(note the triple colons)

from report.

DanDKL avatar DanDKL commented on June 22, 2024

Hi @strengejacke,
thank for the reply:
If I use easystats:::install_easystats_latest()
(triple colons) I get:

easystats:::install_easystats_latest()
Error in get(name, envir = asNamespace(pkg), inherits = FALSE) :
object 'install_easystats_latest' not found

If I try to reinstall from github, the installation gets terminated with the zero exit error in the parameters pack. I previously solved this manually installing this specific pack

from report.

DominiqueMakowski avatar DominiqueMakowski commented on June 22, 2024

😕 something must have gone bad.

Could you try:

devtools::install_github("easystats/insight", force=TRUE)
devtools::install_github("easystats/bayestestR", force=TRUE)
devtools::install_github("easystats/performance", force=TRUE)
devtools::install_github("easystats/parameters", force=TRUE)
devtools::install_github("easystats/correlation", force=TRUE)
devtools::install_github("easystats/estimate", force=TRUE)
devtools::install_github("easystats/report", force=TRUE)

And paste the console output? Thanks and sorry for the trouble!

from report.

DanDKL avatar DanDKL commented on June 22, 2024

Ok guys, I have I small update that I hope can help solve the problem
I opened a machine with an old R version: 3.5.1.
I already tried yesterday on this machine and I:

  1. did not get the zero exit error on the parameters pack.
  2. but got the same error on the report pack

So I used your suggestions on this machine, and it works :)
If I reinstall easystats via github I do not get the zero exit error on the parameters pack (as before) and everything get updated fine.
But then if I run the report... it works too :)

> r <- report::report(fit1)
Warning message:
Some Pareto k diagnostic values are too high. See help('pareto-k-diagnostic') for details.
 
> to_text(r)
We fitted a Bayesian linear mixed model to predict Agency with Condition, Time and IAc_tot. The model included etc...
 The model's explanatory power is substantial (R2's median = 0.65, LOO adj. R2 = 0.47). Within this model etc...

Side note: if I run
easystats:::install_easystats_latest()
on this machine with r 3.5.1... it works without any problem.

So... could it be some incomaptibility issue with the 3.5.3?
@DominiqueMakowski I'll try as soon as possibile, right now github tells me that I have exceeded my API rate limit and I have to wait :\

from report.

DominiqueMakowski avatar DominiqueMakowski commented on June 22, 2024

🎉 Glad it works! I believe it is because we did some updates between yesterday and now :)

from report.

DanDKL avatar DanDKL commented on June 22, 2024

🎉 Glad it works! I believe it is because we did some updates between yesterday and now :)

I'm glad too, at least I can use report for the current analyses I'm running. :)
Since I have to send the code to my coworkers, do you suggest to downgrade the R version on their machines from 3.5.3. to 3.5.1?
Or this update helped you to figured out the problem and it will be fixed in the next repo update, therefore they just have to wait?

Obviously I'll tried to force the installation on the 3.5.3 as soon as github will allow me and report back :)

from report.

DanDKL avatar DanDKL commented on June 22, 2024

btw thanks you all for the support :)

from report.

DominiqueMakowski avatar DominiqueMakowski commented on June 22, 2024

Normally it should (hopefully) now work on almost all R versions, as we designed easystats to be quite compatible. So if your coworkers install easystats (devtools::installl_github("easystats/easystats"), every package should correctly install itself), If there are any problems though, please advise your coworkers to report them (no pun intended) here. We will try to address them: all reported bugs or issues are good for us, as it makes the tools better in the end ☺️.

Let us know of anything

from report.

DanDKL avatar DanDKL commented on June 22, 2024

here the last update :)
So, I tried to force the installation as @DominiqueMakowski suggested.
I can force install all the packages but parameters. Parameters keeps giving the "zero exit" error.

Error in i.p(...) : 
  (converted from warning) installation of package ‘C:/Users/DDL/AppData/Local/Temp/Rtmp6FmOA3/file276c735c165/parameters_0.1.0.tar.gz’ had non-zero exit status

Nonetheless, since I was able to force install the report package... now it works on r 3.5.3 too :)
I still do not understand that zero exit error. I'll probably reinstall r from scratch to see if I something changes. :) But for now, it works!

Thanks for the support and for the great work! :)

from report.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.