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

Rejuvenation #625

Merged
merged 58 commits into from
Oct 2, 2023
Merged

Rejuvenation #625

merged 58 commits into from
Oct 2, 2023

Conversation

@strengejacke
Copy link
Member Author

@IndrajeetPatil Here are some issues with not available packages, do you know how to fix this?
https://github.com/easystats/bayestestR/actions/runs/6361179508/job/17275434553?pr=625

@IndrajeetPatil
Copy link
Member

@IndrajeetPatil Here are some issues with not available packages, do you know how to fix this? https://github.com/easystats/bayestestR/actions/runs/6361179508/job/17275434553?pr=625

Should be fixed for runs from here on.

@strengejacke

This comment was marked as resolved.

@strengejacke
Copy link
Member Author

Hm, there were actually quite some bugs in package functions which were not captured by the CI tests? @mattansb Here's an example that seems to have worked in the past (at least, we had a test for it), but now no longer works:

library(bayestestR)
library(blavaan)
#> Loading required package: Rcpp
#> This is blavaan 0.5-1
#> On multicore systems, we suggest use of future::plan("multicore") or
#>   future::plan("multisession") for faster post-MCMC computations.

data("PoliticalDemocracy", package = "lavaan")

model <- "
  # latent variable definitions
  dem60 =~ y1 + a*y2
  dem65 =~ y5 + a*y6

  # regressions
  dem65 ~ dem60

  # residual correlations
  y1 ~~ y5
"

model2 <- "
  # latent variable definitions
  dem60 =~ y1 + a*y2
  dem65 =~ y5 + a*y6

  # regressions
  dem65 ~ 0*dem60

  # residual correlations
  y1 ~~ 0*y5
"
suppressWarnings(capture.output({
  bfit <- blavaan::bsem(model,
    data = PoliticalDemocracy,
    n.chains = 1, burnin = 50, sample = 100
  )
  bfit2 <- blavaan::bsem(model2,
    data = PoliticalDemocracy,
    n.chains = 1, burnin = 50, sample = 100
  )
}))

bayesfactor_models(bfit, bfit2)
#> Warning: Bayes factors might not be precise.
#>   For precise Bayes factors, sampling at least 40,000 posterior samples is
#>   recommended.
#> Error in apply(diffs, 2, sum): dim(X) must have a positive length

Created on 2023-10-02 with reprex v2.0.2

@codecov
Copy link

codecov bot commented Oct 2, 2023

Codecov Report

Merging #625 (bb91bfb) into main (5f81276) will increase coverage by 2.36%.
Report is 31 commits behind head on main.
The diff coverage is 69.48%.

❗ Current head bb91bfb differs from pull request most recent head 36f0a3e. Consider uploading reports for the commit 36f0a3e to get more accurate results

@@            Coverage Diff             @@
##             main     #625      +/-   ##
==========================================
+ Coverage   50.87%   53.24%   +2.36%     
==========================================
  Files          65       65              
  Lines        5185     5287     +102     
==========================================
+ Hits         2638     2815     +177     
+ Misses       2547     2472      -75     
Files Coverage Δ
R/area_under_curve.R 77.77% <ø> (ø)
R/bayesfactor_inclusion.R 96.55% <ø> (ø)
R/bayesfactor_models.R 75.94% <ø> (ø)
R/bayesfactor_restricted.R 66.66% <ø> (ø)
R/check_prior.R 0.00% <ø> (ø)
R/contr.equalprior.R 82.60% <100.00%> (+0.79%) ⬆️
R/convert_bayesian_to_frequentist.R 46.25% <ø> (ø)
R/convert_pd_to_p.R 80.00% <100.00%> (+80.00%) ⬆️
R/describe_prior.R 70.83% <ø> (ø)
R/effective_sample.R 50.00% <ø> (ø)
... and 31 more

... and 3 files with indirect coverage changes

@strengejacke strengejacke mentioned this pull request Oct 2, 2023
@IndrajeetPatil IndrajeetPatil changed the title fix issues Rejuvenation Oct 2, 2023
@strengejacke strengejacke merged commit fdd2512 into main Oct 2, 2023
25 of 26 checks passed
@strengejacke strengejacke deleted the fix_describe_posterior branch October 2, 2023 13:46
@IndrajeetPatil
Copy link
Member

Thanks, @strengejacke!

@strengejacke
Copy link
Member Author

We should schedule a new release-round... Something like

easystats -> see -> insight -> bayestestR -> ... (parameters? performance?)

@strengejacke
Copy link
Member Author

what about report, @rempsyc?

datawizard, parameters and performance are quite recent, so probably no update needed shortly.

@DominiqueMakowski
Copy link
Member

Shouldn't easystats be last to have new versions reqs?

@strengejacke
Copy link
Member Author

Yes, makes sense.

@rempsyc
Copy link
Sponsor Member

rempsyc commented Oct 2, 2023

It's been almost 28 weeks for report, I'm happy to resubmit to CRAN. Seems like the other easystats packages devel versions I was relying on (insight, effectsize) were already pushed to CRAN, so technically I could do it next weekend?

@strengejacke
Copy link
Member Author

I suggest adding all GitHub version to the REMOTES field, so you can test report on the latest devel versions first - otherwise, we may find revdep issues when we submit packages after report was accepted on CRAN.

@rempsyc
Copy link
Sponsor Member

rempsyc commented Oct 3, 2023

Oh good idea, thanks!

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

Successfully merging this pull request may close these issues.

Inconsistency for name of argument "posterior/s"
5 participants