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

Predicted values tab error #280

Open
ybrandvain opened this issue Aug 31, 2022 · 6 comments
Open

Predicted values tab error #280

ybrandvain opened this issue Aug 31, 2022 · 6 comments

Comments

@ybrandvain
Copy link

loving easy stats! but there im running into an issue with the predicted values tab on the easydashboard. [see reprex below and attached html or screengrab]

easydashboard.html.zip

Screen Shot 2022-08-30 at 10 41 51 PM

library(easystats)
#> # Attaching packages: easystats 0.5.2
#> ✔ insight     0.18.2    ✔ datawizard  0.5.1  
#> ✔ bayestestR  0.12.1    ✔ performance 0.9.2  
#> ✔ parameters  0.18.2    ✔ effectsize  0.7.0.5
#> ✔ modelbased  0.8.5     ✔ correlation 0.8.2  
#> ✔ see         0.7.2     ✔ report      0.5.5
mod <- lm(formula = Sepal.Width ~ Sepal.Length * Species, data = iris)
model_dashboard(mod)
#> processing file: easydashboard.Rmd
#> Error in parse_block(g[-1], g[1], params.src, markdown_mode): Duplicate chunk label 'unnamed-chunk-1', which has been used for the chunk:
#> cat(sprintf("*Local `.Rprofile` detected at `%s`*", normalizePath(".Rprofile")))

Created on 2022-08-30 with reprex v2.0.2

Session info
sessioninfo::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#>  setting  value
#>  version  R version 4.2.1 (2022-06-23)
#>  os       macOS Big Sur ... 10.16
#>  system   x86_64, darwin17.0
#>  ui       X11
#>  language (EN)
#>  collate  en_US.UTF-8
#>  ctype    en_US.UTF-8
#>  tz       America/Chicago
#>  date     2022-08-30
#>  pandoc   2.18 @ /Applications/RStudio.app/Contents/MacOS/quarto/bin/tools/ (via rmarkdown)
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package       * version date (UTC) lib source
#>  assertthat      0.2.1   2019-03-21 [2] CRAN (R 4.2.0)
#>  bayestestR    * 0.12.1  2022-05-02 [1] CRAN (R 4.2.0)
#>  bslib           0.4.0   2022-07-16 [1] CRAN (R 4.2.0)
#>  cachem          1.0.6   2021-08-19 [2] CRAN (R 4.2.0)
#>  cli             3.3.0   2022-04-25 [2] CRAN (R 4.2.0)
#>  colorspace      2.0-3   2022-02-21 [2] CRAN (R 4.2.0)
#>  correlation   * 0.8.2   2022-08-09 [1] CRAN (R 4.2.0)


#>  crayon          1.5.1   2022-03-26 [2] CRAN (R 4.2.0)
#>  datawizard    * 0.5.1   2022-08-17 [1] CRAN (R 4.2.0)
#>  DBI             1.1.2   2021-12-20 [2] CRAN (R 4.2.0)
#>  digest          0.6.29  2021-12-01 [2] CRAN (R 4.2.0)
#>  dplyr           1.0.9   2022-04-28 [1] CRAN (R 4.2.0)
#>  DT              0.23    2022-05-10 [1] CRAN (R 4.2.0)
#>  easystats     * 0.5.2   2022-08-30 [1] CRAN (R 4.2.1)
#>  effectsize    * 0.7.0.5 2022-08-10 [1] CRAN (R 4.2.0)
#>  ellipsis        0.3.2   2021-04-29 [2] CRAN (R 4.2.0)
#>  evaluate        0.16    2022-08-09 [1] CRAN (R 4.2.0)
#>  fansi           1.0.3   2022-03-24 [2] CRAN (R 4.2.0)
#>  fastmap         1.1.0   2021-01-25 [2] CRAN (R 4.2.0)
#>  flexdashboard   0.6.0   2022-08-05 [1] CRAN (R 4.2.0)
#>  fs              1.5.2   2021-12-08 [2] CRAN (R 4.2.0)
#>  generics        0.1.3   2022-07-05 [1] CRAN (R 4.2.0)
#>  ggplot2         3.3.6   2022-05-03 [1] CRAN (R 4.2.0)
#>  glue            1.6.2   2022-02-24 [2] CRAN (R 4.2.0)
#>  gtable          0.3.0   2019-03-25 [2] CRAN (R 4.2.0)
#>  highr           0.9     2021-04-16 [2] CRAN (R 4.2.0)
#>  htmltools       0.5.3   2022-07-18 [1] CRAN (R 4.2.0)
#>  htmlwidgets     1.5.4   2021-09-08 [2] CRAN (R 4.2.0)
#>  insight       * 0.18.2  2022-08-10 [1] CRAN (R 4.2.0)
#>  jquerylib       0.1.4   2021-04-26 [2] CRAN (R 4.2.0)
#>  jsonlite        1.8.0   2022-02-22 [2] CRAN (R 4.2.0)
#>  knitr           1.40    2022-08-24 [1] CRAN (R 4.2.0)
#>  lifecycle       1.0.1   2021-09-24 [2] CRAN (R 4.2.0)
#>  magrittr        2.0.3   2022-03-30 [2] CRAN (R 4.2.0)
#>  memoise         2.0.1   2021-11-26 [2] CRAN (R 4.2.0)
#>  modelbased    * 0.8.5   2022-08-18 [1] CRAN (R 4.2.0)
#>  munsell         0.5.0   2018-06-12 [2] CRAN (R 4.2.0)
#>  parameters    * 0.18.2  2022-08-10 [1] CRAN (R 4.2.0)
#>  performance   * 0.9.2   2022-08-10 [1] CRAN (R 4.2.0)
#>  pillar          1.7.0   2022-02-01 [2] CRAN (R 4.2.0)
#>  pkgconfig       2.0.3   2019-09-22 [2] CRAN (R 4.2.0)
#>  purrr           0.3.4   2020-04-17 [2] CRAN (R 4.2.0)
#>  R6              2.5.1   2021-08-19 [2] CRAN (R 4.2.0)
#>  report        * 0.5.5   2022-08-22 [1] CRAN (R 4.2.0)
#>  reprex          2.0.2   2022-08-17 [1] CRAN (R 4.2.0)
#>  rlang           1.0.4   2022-07-12 [1] CRAN (R 4.2.0)
#>  rmarkdown       2.16    2022-08-24 [1] CRAN (R 4.2.0)
#>  rstudioapi      0.13    2020-11-12 [2] CRAN (R 4.2.0)
#>  sass            0.4.2   2022-07-16 [1] CRAN (R 4.2.0)
#>  scales          1.2.0   2022-04-13 [2] CRAN (R 4.2.0)
#>  see           * 0.7.2   2022-08-10 [1] CRAN (R 4.2.0)
#>  sessioninfo     1.2.2   2021-12-06 [1] CRAN (R 4.2.0)
#>  stringi         1.7.8   2022-07-11 [1] CRAN (R 4.2.0)
#>  stringr         1.4.1   2022-08-20 [1] CRAN (R 4.2.0)
#>  tibble          3.1.7   2022-05-03 [2] CRAN (R 4.2.0)
#>  tidyselect      1.1.2   2022-02-21 [2] CRAN (R 4.2.0)
#>  utf8            1.2.2   2021-07-24 [2] CRAN (R 4.2.0)
#>  vctrs           0.4.1   2022-04-13 [2] CRAN (R 4.2.0)
#>  withr           2.5.0   2022-03-03 [2] CRAN (R 4.2.0)
#>  xfun            0.32    2022-08-10 [1] CRAN (R 4.2.0)
#>  yaml            2.3.5   2022-02-21 [2] CRAN (R 4.2.0)
#> 
#>  [1] /Users/ybrandva/Library/R/x86_64/4.2/library
#>  [2] /Library/Frameworks/R.framework/Versions/4.2/Resources/library
#> 
#> ──────────────────────────────────────────────────────────────────────────────
@strengejacke
Copy link
Member

Ok, this is probably a bit more difficult to debug, because the same model worked for me w/o any problems. Can you first try following:

  1. Update the easystats package: install.packages("easystats", repos = "https://easystats.r-universe.dev") (note the r-universe repo!)
  2. After installation, update the core-packages: easystats::install_latest() (note: don't load the library(easystats) after installation, directly call the function as shown in the code here)

After that, load library(easystats), and you should see that you have package version 0.5.2.1 and also the other packages have higher version numbers. Then try your example again please.

@strengejacke
Copy link
Member

This is roughly what you should see when loading easystats after updating:

image

@strengejacke
Copy link
Member

@IndrajeetPatil do you have any ideas? The error message referring to the rprofile-file looks strange to me.

@ybrandvain
Copy link
Author

not ?fully? fixed .. but different error

library(easystats)
#> # Attaching packages: easystats 0.5.2.1
#> ✔ insight     0.18.2.7     ✔ datawizard  0.5.1.4   
#> ✔ bayestestR  0.12.1.2     ✔ performance 0.9.2.2   
#> ✔ parameters  0.18.2.5     ✔ effectsize  0.7.0.9999
#> ✔ modelbased  0.8.5        ✔ correlation 0.8.2.2   
#> ✔ see         0.7.2.1      ✔ report      0.5.5.1
mod <- lm(formula = Sepal.Width ~ Sepal.Length * Species, data = iris)
model_dashboard(mod)
#> processing file: easydashboard.Rmd
#> Error in parse_block(g[-1], g[1], params.src, markdown_mode): Duplicate chunk label 'unnamed-chunk-1', which has been used for the chunk:
#> cat(sprintf("*Local `.Rprofile` detected at `%s`*", normalizePath(".Rprofile")))

Created on 2022-08-31 with reprex v2.0.2

Session info
sessioninfo::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#>  setting  value
#>  version  R version 4.2.1 (2022-06-23)
#>  os       macOS Big Sur ... 10.16
#>  system   x86_64, darwin17.0
#>  ui       X11
#>  language (EN)
#>  collate  en_US.UTF-8
#>  ctype    en_US.UTF-8
#>  tz       America/Chicago
#>  date     2022-08-31
#>  pandoc   2.18 @ /Applications/RStudio.app/Contents/MacOS/quarto/bin/tools/ (via rmarkdown)
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package       * version    date (UTC) lib source
#>  assertthat      0.2.1      2019-03-21 [2] CRAN (R 4.2.0)
#>  bayestestR    * 0.12.1.2   2022-08-29 [1] https://easystats.r-universe.dev (R 4.2.1)
#>  bslib           0.4.0      2022-07-16 [1] CRAN (R 4.2.0)
#>  cachem          1.0.6      2021-08-19 [2] CRAN (R 4.2.0)
#>  cli             3.3.0      2022-04-25 [2] CRAN (R 4.2.0)
#>  colorspace      2.0-3      2022-02-21 [2] CRAN (R 4.2.0)
#>  correlation   * 0.8.2.2    2022-08-29 [1] https://easystats.r-universe.dev (R 4.2.1)
#>  crayon          1.5.1      2022-03-26 [2] CRAN (R 4.2.0)
#>  datawizard    * 0.5.1.4    2022-08-30 [1] https://easystats.r-universe.dev (R 4.2.1)
#>  DBI             1.1.2      2021-12-20 [2] CRAN (R 4.2.0)
#>  digest          0.6.29     2021-12-01 [2] CRAN (R 4.2.0)
#>  dplyr           1.0.9      2022-04-28 [1] CRAN (R 4.2.0)
#>  DT              0.23       2022-05-10 [1] CRAN (R 4.2.0)
#>  easystats     * 0.5.2.1    2022-08-30 [1] https://easystats.r-universe.dev (R 4.2.1)
#>  effectsize    * 0.7.0.9999 2022-08-26 [1] https://easystats.r-universe.dev (R 4.2.1)
#>  ellipsis        0.3.2      2021-04-29 [2] CRAN (R 4.2.0)
#>  evaluate        0.16       2022-08-09 [1] CRAN (R 4.2.0)
#>  fansi           1.0.3      2022-03-24 [2] CRAN (R 4.2.0)
#>  fastmap         1.1.0      2021-01-25 [2] CRAN (R 4.2.0)
#>  flexdashboard   0.6.0      2022-08-05 [1] CRAN (R 4.2.0)
#>  fs              1.5.2      2021-12-08 [2] CRAN (R 4.2.0)
#>  generics        0.1.3      2022-07-05 [1] CRAN (R 4.2.0)
#>  ggplot2         3.3.6      2022-05-03 [1] CRAN (R 4.2.0)
#>  glue            1.6.2      2022-02-24 [2] CRAN (R 4.2.0)
#>  gtable          0.3.0      2019-03-25 [2] CRAN (R 4.2.0)
#>  highr           0.9        2021-04-16 [2] CRAN (R 4.2.0)
#>  htmltools       0.5.3      2022-07-18 [1] CRAN (R 4.2.0)
#>  htmlwidgets     1.5.4      2021-09-08 [2] CRAN (R 4.2.0)
#>  insight       * 0.18.2.7   2022-08-30 [1] https://easystats.r-universe.dev (R 4.2.1)
#>  jquerylib       0.1.4      2021-04-26 [2] CRAN (R 4.2.0)
#>  jsonlite        1.8.0      2022-02-22 [2] CRAN (R 4.2.0)
#>  knitr           1.40       2022-08-24 [1] CRAN (R 4.2.0)
#>  lifecycle       1.0.1      2021-09-24 [2] CRAN (R 4.2.0)
#>  magrittr        2.0.3      2022-03-30 [2] CRAN (R 4.2.0)
#>  memoise         2.0.1      2021-11-26 [2] CRAN (R 4.2.0)
#>  modelbased    * 0.8.5      2022-08-18 [1] CRAN (R 4.2.0)
#>  munsell         0.5.0      2018-06-12 [2] CRAN (R 4.2.0)
#>  parameters    * 0.18.2.5   2022-08-28 [1] https://easystats.r-universe.dev (R 4.2.1)
#>  performance   * 0.9.2.2    2022-08-25 [1] https://easystats.r-universe.dev (R 4.2.1)
#>  pillar          1.7.0      2022-02-01 [2] CRAN (R 4.2.0)
#>  pkgconfig       2.0.3      2019-09-22 [2] CRAN (R 4.2.0)
#>  purrr           0.3.4      2020-04-17 [2] CRAN (R 4.2.0)
#>  R6              2.5.1      2021-08-19 [2] CRAN (R 4.2.0)
#>  report        * 0.5.5.1    2022-08-29 [1] https://easystats.r-universe.dev (R 4.2.1)
#>  reprex          2.0.2      2022-08-17 [1] CRAN (R 4.2.0)
#>  rlang           1.0.4      2022-07-12 [1] CRAN (R 4.2.0)
#>  rmarkdown       2.16       2022-08-24 [1] CRAN (R 4.2.0)
#>  rstudioapi      0.13       2020-11-12 [2] CRAN (R 4.2.0)
#>  sass            0.4.2      2022-07-16 [1] CRAN (R 4.2.0)
#>  scales          1.2.0      2022-04-13 [2] CRAN (R 4.2.0)
#>  see           * 0.7.2.1    2022-08-25 [1] https://easystats.r-universe.dev (R 4.2.1)
#>  sessioninfo     1.2.2      2021-12-06 [1] CRAN (R 4.2.0)
#>  stringi         1.7.8      2022-07-11 [1] CRAN (R 4.2.0)
#>  stringr         1.4.1      2022-08-20 [1] CRAN (R 4.2.0)
#>  tibble          3.1.7      2022-05-03 [2] CRAN (R 4.2.0)
#>  tidyselect      1.1.2      2022-02-21 [2] CRAN (R 4.2.0)
#>  utf8            1.2.2      2021-07-24 [2] CRAN (R 4.2.0)
#>  vctrs           0.4.1      2022-04-13 [2] CRAN (R 4.2.0)
#>  withr           2.5.0      2022-03-03 [2] CRAN (R 4.2.0)
#>  xfun            0.32       2022-08-10 [1] CRAN (R 4.2.0)
#>  yaml            2.3.5      2022-02-21 [2] CRAN (R 4.2.0)
#> 
#>  [1] /Users/ybrandva/Library/R/x86_64/4.2/library
#>  [2] /Library/Frameworks/R.framework/Versions/4.2/Resources/library
#> 
#> ──────────────────────────────────────────────────────────────────────────────

Uploading easydashboard.html.zip…

Screen Shot 2022-08-31 at 1 18 05 AM

@IndrajeetPatil
Copy link
Member

Yeah, this should definitely not be the case; there is something in .Rprofile file that seems to be messing with the rendering.

Error in parse_block(g[-1], g[1], params.src, markdown_mode): Duplicate chunk label 'unnamed-chunk-1', which has been used for the chunk:

@strengejacke
Copy link
Member

Is your .Rprofile file top secret or can you post its content here? Maybe we find out more.

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

No branches or pull requests

3 participants