CRAN Package Check Results for Package JSmediation

Last updated on 2020-02-18 00:52:10 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.1 2.88 41.69 44.57 OK
r-devel-linux-x86_64-debian-gcc 0.1.1 2.67 31.63 34.30 OK
r-devel-linux-x86_64-fedora-clang 0.1.1 53.24 OK
r-devel-linux-x86_64-fedora-gcc 0.1.1 51.67 OK
r-devel-windows-ix86+x86_64 0.1.1 8.00 55.00 63.00 OK
r-devel-windows-ix86+x86_64-gcc8 0.1.0 12.00 78.00 90.00 ERROR
r-patched-linux-x86_64 0.1.1 2.62 37.13 39.75 OK
r-patched-solaris-x86 0.1.1 72.80 OK
r-release-linux-x86_64 0.1.1 2.59 37.21 39.80 OK
r-release-windows-ix86+x86_64 0.1.1 5.00 49.00 54.00 OK
r-release-osx-x86_64 0.1.1 OK
r-oldrel-windows-ix86+x86_64 0.1.1 4.00 55.00 59.00 OK
r-oldrel-osx-x86_64 0.1.1 OK

Check Details

Version: 0.1.0
Check: examples
Result: ERROR
    Running examples in 'JSmediation-Ex.R' failed
    The error most likely occurred in:
    
    > ### Name: add_index.within_participant_mediation
    > ### Title: add_index method for within-participant mediation
    > ### Aliases: add_index.within_participant_mediation
    >
    > ### ** Examples
    >
    > ## getting an indirect effect index
    > within_model <- mdt_within(data = dohle_siegrist,
    + IV = name,
    + DV = willingness,
    + M = hazardousness,
    + grouping = participant)
    Error: Must extract column with a single subscript.
    x The subscript `var` has the wrong type `glue`.
    i It must be numeric or character.
    Backtrace:
     x
     1. +-JSmediation::mdt_within(...)
     2. \-JSmediation:::mdt_within.data.frame(...)
     3. +-rlang::is_true(...)
     4. \-data_long %>% dplyr::pull(DV_cond_1_name) %>% mean()
     5. +-base::withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
     6. \-base::eval(quote(`_fseq`(`_lhs`)), env, env)
     7. \-base::eval(quote(`_fseq`(`_lhs`)), env, env)
     8. \-JSmediation:::`_fseq`(`_lhs`)
     9. \-magrittr::freduce(value, `_function_list`)
     10. \-function_list[[i]](value)
     11. +-dplyr::pull(., DV_cond_1_name)
     12. \-dplyr:::pull.data.frame(., DV_cond_1_name)
     13. \-tidyselect::vars_pull(names(.data), !!enquo(var))
     14. \-tidyselect:::pull_as_location2(loc, n, vars)
     15. +-tidyselect:::with_subscript_errors(...)
     16.
    Execution halted
Flavor: r-devel-windows-ix86+x86_64-gcc8

Version: 0.1.0
Check: tests
Result: ERROR
     Running 'testthat.R' [6s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library(testthat)
     > library(JSmediation)
     >
     > test_check("JSmediation")
     Test of mediation (moderated mediation)
     ==============================================
    
     Variables:
    
     - IV: condition_c
     - DV: hypodescent
     - M: linkedfate_c
     - Mod: sdo
    
     Paths:
    
     ======== ============== ===== =======================
     Path Point estimate SE APA
     ======== ============== ===== =======================
     a -1.469 0.194 t(820) = 7.58, p < .001
     a * Mod 0.323 0.076 t(820) = 4.25, p < .001
     b 0.240 0.079 t(818) = 3.02, p = .003
     b * Mod -0.049 0.031 t(818) = 1.57, p = .117
     c -0.211 0.189 t(820) = 1.12, p = .265
     c * Mod 0.035 0.074 t(820) = 0.47, p = .640
     c' 0.061 0.201 t(818) = 0.30, p = .763
     c' * Mod -0.035 0.077 t(818) = 0.46, p = .645
     ======== ============== ===== =======================
    
     Indirect effect index:
    
     Indirect effect index is not computed by default.
     Please use add_index() to compute it.
    
     Fitted models:
    
     - X * Mod -> Y
     - X * Mod -> M
     - (X + M) * Mod -> Y
     -- 1. Error: mdt_within does not throw error (@test-mdt_within.R#4) -----------
     Must extract column with a single subscript.
     x The subscript `var` has the wrong type `glue`.
     i It must be numeric or character.
     Backtrace:
     1. testthat::expect_silent(...)
     10. JSmediation:::mdt_within.data.frame(...)
     10. dplyr::pull(., DV_cond_1_name)
     21. tidyselect::vars_pull(names(.data), !!enquo(var))
     22. tidyselect:::pull_as_location2(loc, n, vars)
     30. vctrs::vec_as_subscript2(i, arg = "var", logical = "error")
     31. vctrs:::result_get(...)
    
     -- 2. Error: add_index method for mdt_within does not throw error (@test-mdt_wit
     Must extract column with a single subscript.
     x The subscript `var` has the wrong type `glue`.
     i It must be numeric or character.
     Backtrace:
     1. JSmediation::mdt_within(...)
     2. JSmediation:::mdt_within.data.frame(...)
     10. dplyr::pull(., DV_cond_1_name)
     13. tidyselect::vars_pull(names(.data), !!enquo(var))
     14. tidyselect:::pull_as_location2(loc, n, vars)
     22. vctrs::vec_as_subscript2(i, arg = "var", logical = "error")
     23. vctrs:::result_get(...)
    
     -- 3. Error: print method for mdt_within does not throw error (@test-mdt_within.
     Must extract column with a single subscript.
     x The subscript `var` has the wrong type `glue`.
     i It must be numeric or character.
     Backtrace:
     1. JSmediation::mdt_within(...)
     2. JSmediation:::mdt_within.data.frame(...)
     10. dplyr::pull(., DV_cond_1_name)
     13. tidyselect::vars_pull(names(.data), !!enquo(var))
     14. tidyselect:::pull_as_location2(loc, n, vars)
     22. vctrs::vec_as_subscript2(i, arg = "var", logical = "error")
     23. vctrs:::result_get(...)
    
     == testthat results ===========================================================
     [ OK: 27 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 3 ]
     1. Error: mdt_within does not throw error (@test-mdt_within.R#4)
     2. Error: add_index method for mdt_within does not throw error (@test-mdt_within.R#12)
     3. Error: print method for mdt_within does not throw error (@test-mdt_within.R#23)
    
     Error: testthat unit tests failed
     Execution halted
Flavor: r-devel-windows-ix86+x86_64-gcc8