Comments (5)
Hmm, that is probably due to an old R
version. I cannot replicate with R
3.6.1
as shown below. And I fear there is not a lot of incentive to try to get this to work with such an old R
version.
> library("afex")
Loading required package: lme4
Loading required package: Matrix
Registered S3 methods overwritten by 'car':
method from
influence.merMod lme4
cooks.distance.influence.merMod lme4
dfbeta.influence.merMod lme4
dfbetas.influence.merMod lme4
************
Welcome to afex. For support visit: http://afex.singmann.science/
- Functions for ANOVAs: aov_car(), aov_ez(), and aov_4()
- Methods for calculating p-values with mixed(): 'KR', 'S', 'LRT', and 'PB'
- 'afex_aov' and 'mixed' objects can be passed to emmeans() for follow-up tests
- NEWS: library('emmeans') now needs to be called explicitly!
- Get and set global package options with: afex_options()
- Set orthogonal sum-to-zero contrasts globally: set_sum_contrasts()
- For example analyses see: browseVignettes("afex")
************
Attaching package: ‘afex’
The following object is masked from ‘package:lme4’:
lmer
> library("emmeans")
Error in library("emmeans") : there is no package called ‘emmeans’
> sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18362)
Matrix products: default
locale:
[1] LC_COLLATE=English_Switzerland.1252 LC_CTYPE=English_Switzerland.1252
[3] LC_MONETARY=English_Switzerland.1252 LC_NUMERIC=C
[5] LC_TIME=English_Switzerland.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] afex_0.25-1 lme4_1.1-21 Matrix_1.2-17
loaded via a namespace (and not attached):
[1] zip_2.0.4 Rcpp_1.0.2 plyr_1.8.4 compiler_3.6.1 pillar_1.4.2
[6] cellranger_1.1.0 nloptr_1.2.1 forcats_0.4.0 tools_3.6.1 boot_1.3-22
[11] zeallot_0.1.0 gtable_0.3.0 tibble_2.1.3 nlme_3.1-140 lattice_0.20-38
[16] pkgconfig_2.0.2 rlang_0.4.0 openxlsx_4.1.0.1 rstudioapi_0.10 parallel_3.6.1
[21] curl_4.0 haven_2.1.1 rio_0.5.16 stringr_1.4.0 dplyr_0.8.3
[26] vctrs_0.2.0 hms_0.5.1 tidyselect_0.2.5 lmerTest_3.1-0 grid_3.6.1
[31] glue_1.3.1 data.table_1.12.6 R6_2.4.0 readxl_1.3.1 foreign_0.8-71
[36] minqa_1.2.4 carData_3.0-2 reshape2_1.4.3 purrr_0.3.2 ggplot2_3.2.1
[41] car_3.0-4 magrittr_1.5 scales_1.0.0 backports_1.1.4 MASS_7.3-51.4
[46] splines_3.6.1 assertthat_0.2.1 abind_1.4-5 colorspace_1.4-1 numDeriv_2016.8-1.1
[51] stringi_1.4.3 lazyeval_0.2.2 munsell_0.5.0 crayon_1.3.4
from afex.
Thanks for checking it out. If I have some time, I'll try to narrow it down if it is an issue with the old R version.
from afex.
Hi guys,
Just letting you know I just tried installing afex with R version 3.5.0 and this issue also happened to me. I re-installed with install.packages("afex", dependencies = T)
and package emmeans was one of the many installed. If I try to load afex without loading emmeans, it still gives the same error, and if I try to load emmeans I get the following:
library(emmeans)
Error: package or namespace load failed for ‘emmeans’ in get(method, envir = home): lazy-load database 'C:/Users/Natii/Documents/R/win-library/3.5/emmeans/R/emmeans.rdb' is corrupt
In addition: Warning messages:
1: package ‘emmeans’ was built under R version 3.5.3
2: In get(method, envir = home) : internal error -5 in R_decompress1
So I guess the problem is R's version, as emmeans was built under version 3.5.3...
from afex.
Can you please post the full output of sessionInfo()
for the situation in which the error occurs?
from afex.
I suppose this is the important part, or do you actually need all of it?
R version 3.5.0 (2018-04-23)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
from afex.
Related Issues (20)
- Following up significant interactions in GLMM HOT 5
- anova() works different for mixed versus lme4 objects HOT 4
- Other suitable contrasts than contr.sum HOT 1
- error for running mixed() with a null model (no fixed effect) HOT 1
- Understanding inconsistencies between `aov_car()` and equivalents HOT 1
- Adding geoms to `afex_plot()` HOT 5
- Degree of Freedom in aov_car output HOT 3
- Can aov_car report 95% confidence interval? HOT 6
- Unexpected outcomes when setting contrasts manually HOT 3
- Anova table data heading incorrect HOT 2
- Issues with next version of ggplot2 HOT 2
- [Feature request] Add ability to automatically simplify mixed models following Singman and Kellen (2019)
- Residuals with `mixed`-fitted model HOT 3
- Issue with next version of ggbeeswarm HOT 1
- Bump minimum needed R version to `4.1` for `{pbkrtest}` update?
- Issue with upcoming ggplot2 version HOT 3
- [Sugestion] MMRM (GLS) for Afex: Kenward-Roger and Satterthwaite for free :) HOT 1
- Error in ctrl$optimizer <- optimizer[..i] : object of type 'symbol' is not subsettable
- emmeans gives wrong results for afex_aovs if the at = argument is reversed HOT 1
- Getting variance for the effect instead of each level of the effect? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from afex.