alapo / Literate-Programming

This is the repository for the Literate Programming Workshop
39 stars 11 forks source link

Could not find function `describe.aov` #10

Closed luciaov closed 3 years ago

luciaov commented 3 years ago

Describe the bug Hi, I am at the final step to knit the document in Rmarkdown in Windows 10 and I got a message saying "execution halted" in Line 81 (which is empty) I have R version 4.0.4 and RStudio v1.4.1106.

Thank you.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'manuscript.rmd'
  2. Click on 'Knit'
  3. Scroll down to 'Knit to rdocx-document'
  4. See error in RMarkdown - Error in describe-aov(model, “Group”) : could not find function “describe.aov” calls: … inline_exec -> hook_eval -> withVisible -> eval -> eval Execution halted

Additionally, I wasn't able to install easystats using the installR script. This is the error message I got: Error: Failed to install 'easystats' from GitHub: Failed to install 'modelbased' from GitHub: (converted from warning) installation of package ‘C:/Users/lucia/AppData/Local/Temp/Rtmp8c4edV/file24485b91473d/modelbased_0.5.9.tar.gz’ had non-zero exit status

Expected behavior As explained in the video, the word document should open, but nothing happens.

Screenshots image

devtools::session_info() In your Console, type devtools::session_info() and paste it in the code section below. This allows me to evaluate your R environment for any issues.

```r # REMOVE THIS LINE AND PASTE OUTPUT FROM devtools::session_info() ``` **devtools::session_info()**

```r devtools::session_info() - Session info ----------------------------------------------- setting value version R version 4.0.4 (2021-02-15) os Windows 10 x64 system x86_64, mingw32 ui RStudio language (EN) collate English_United States.1252 ctype English_United States.1252 tz America/Denver date 2021-03-24 - Packages --------------------------------------------------- package * version date lib askpass 1.1 2019-01-13 [1] assertthat 0.2.1 2019-03-21 [1] cachem 1.0.4 2021-02-13 [1] callr 3.5.1 2020-10-13 [1] cellranger 1.1.0 2016-07-27 [1] cli 2.3.1 2021-02-23 [1] crayon 1.4.1 2021-02-08 [1] credentials 1.3.0 2020-07-21 [1] curl 4.3 2019-12-02 [1] data.table 1.14.0 2021-02-21 [1] desc 1.3.0 2021-03-05 [1] devtools 2.3.2 2020-09-18 [1] digest 0.6.27 2020-10-24 [1] ellipsis 0.3.1 2020-05-15 [1] evaluate 0.14 2019-05-28 [1] fansi 0.4.2 2021-01-15 [1] fastmap 1.1.0 2021-01-25 [1] forcats 0.5.1 2021-01-27 [1] foreign 0.8-81 2020-12-22 [2] fs 1.5.0 2020-07-31 [1] gdtools 0.2.3 2021-01-06 [1] glue 1.4.2 2020-08-27 [1] haven 2.3.1 2020-06-01 [1] hms 1.0.0 2021-01-13 [1] htmltools 0.5.1.1 2021-01-22 [1] jsonlite 1.7.2 2020-12-09 [1] knitr 1.31 2021-01-27 [1] lifecycle 1.0.0 2021-02-15 [1] magrittr 2.0.1 2020-11-17 [1] memoise 2.0.0 2021-01-26 [1] officedown 0.2.1 2021-02-01 [1] officer 0.3.17 2021-03-05 [1] openssl 1.4.3 2020-09-18 [1] openxlsx 4.2.3 2020-10-27 [1] pacman 0.5.1 2019-03-11 [1] pillar 1.5.1 2021-03-05 [1] pkgbuild 1.2.0 2020-12-15 [1] pkgconfig 2.0.3 2019-09-22 [1] pkgload 1.2.0 2021-02-23 [1] prettyunits 1.1.1 2020-01-24 [1] processx 3.4.5 2020-11-30 [1] ps 1.6.0 2021-02-28 [1] purrr 0.3.4 2020-04-17 [1] R6 2.5.0 2020-10-28 [1] Rcpp 1.0.6 2021-01-15 [1] readxl 1.3.1 2019-03-13 [1] remotes 2.2.0 2020-07-21 [1] rio 0.5.26 2021-03-01 [1] rlang 0.4.10 2020-12-30 [1] rmarkdown 2.7 2021-02-19 [1] rprojroot 2.0.2 2020-11-15 [1] rscodeio 0.1.0 2021-03-24 [1] rstudioapi 0.13 2020-11-12 [1] rvg 0.2.5 2020-06-30 [1] sessioninfo 1.1.1 2018-11-05 [1] stringi 1.5.3 2020-09-09 [1] sys 3.4 2020-07-23 [1] systemfonts 1.0.1 2021-02-09 [1] testthat 3.0.2 2021-02-14 [1] tibble 3.1.0 2021-02-25 [1] usethis 2.0.1 2021-02-10 [1] utf8 1.2.1 2021-03-12 [1] uuid 0.1-4 2020-02-26 [1] vctrs 0.3.6 2020-12-17 [1] withr 2.4.1 2021-01-26 [1] xfun 0.22 2021-03-11 [1] xml2 1.3.2 2020-04-23 [1] yaml 2.2.1 2020-02-01 [1] zip 2.1.1 2020-08-27 [1] source CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) Github (anthonynorth/rscodeio@88a1a37) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.3) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.3) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) CRAN (R 4.0.4) [1] C:/Users/lucia/Documents/R/win-library/4.0 [2] C:/Program Files/R/R-4.0.4/library ```

alapo commented 3 years ago

Hi there,

Another user had the same issue. Please re-run the line installing apastats in install.R

If you have issues during the installation, its normal that the document does not knit properly

This question is a duplicate of another issue #10 which was posted early on. Please have a look there

alapo commented 3 years ago

This issue was brought up during Module 05 recording which you can view on YouTube. In the future when opening an issue please make sure you take the time to follow up on it.

Andrew

luciaov commented 3 years ago

Hi Andrew,

Apologies for the late reply. I tried installing apastats unsuccessfully, so I decided to uninstall and install R and RStudio again. I did this twice: the first time, there were residual files on my computer so I was getting the same error, and the second time, I made sure I deleted everything on my computer to start fresh. After installing R, RStudio and Rtools from zero, I then run into new issues, which was very frustrating. But luckily yesterday (I still don't know how), I was finally able to install all the packages using instal.R, as indicated in Module 3. You were right, once I had those installed, I could knit and open the word document, so my problem is solved :)

Thank you for your help, and again, sorry for my delayed response.

Lucia

alapo commented 3 years ago

Lucia it's no problem at all!!!

Part of this process is the critique. I know it can come across harsh but it's not intended to. There is zero need to apologize.

The very short time-line were using to learn requires you to throw yourself into the deep end. But my mentality is that you shouldn't count your mistakes but rather your growth in R.

I am very happy to hop on zoom to help you one on one at any time if you run into any further issues

Don't hesitate to shoot me a message should you run into ANY further issues.

Good luck!! Andrew

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: luciaov @.> Sent: Wednesday, March 31, 2021 6:16:09 AM To: alapo/Literate-Programming @.> Cc: alapo @.>; State change @.> Subject: Re: [alapo/Literate-Programming] Could not find function describe.aov (#10)

Hi Andrew,

Apologies for the late reply. I tried installing apastats unsuccessfully, so I decided to uninstall and install R and RStudio again. I did this twice: the first time, there were residual files on my computer so I was getting the same error, and the second time, I made sure I deleted everything on my computer to start fresh. After installing R, RStudio and Rtools from zero, I then run into new issues, which was very frustrating. But luckily yesterday (I still don't know how), I was finally able to install all the packages using instal.R, as indicated in Module 3. You were right, once I had those installed, I could knit and open the word document, so my problem is solved :)

Thank you for your help, and again, sorry for my delayed response.

Lucia

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHubhttps://github.com/alapo/Literate-Programming/issues/10#issuecomment-810950985, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH77EYQF6UZ5CVUWVQBUI4LTGLY6TANCNFSM4ZX5A3OA.