I had created an Rmarkdown file where I read in a csv file downloaded from https://dq-content.s3.amazonaws.com/505/covid19.csv. I have the file saved with the name covid19.csv in the same folder as my Rmd file and am repeatedly getting the following error:
Error in check_dots_empty(action=warn) : unused argument
(action = warn) Calls: <Anonymous> ... format.tbl->
trunc_mat -> shrink_mat -> <Anonymous> Execution halted
The file compiled without trouble before I installed the tidyverse, stringr, and stringi packages. I am using Rstudio version 1.2.5033. Could one of these packages be causing the error?
Deleting the first line where the error occurred in my file just created the same error later in the file. I created a new file with just the following R chunk and am still getting the same error. (It will knit if I remove head(covid_df) from the below code. It also will knit if I just manually create a data frame called my_df and then look at head(my_df).):
library(readr)
covid_df<-read_csv("covid19.csv")
head(covid_df)
Related
I am trying to knit an .rmd file to pdf. I am receiving the following error message:
Error in library(lmSupport) : there is no package called ‘lmSupport’
Execution halted
lmsupport is not in my code at all. I tried restarting R and clearing cache. Not sure what else to do.
I have the most recent version of R downloaded on my Mac
I have tried to knit two different R Markdown files in R Studio, either to HTML or PDF and neither seems to work. I have to mention that:
I run Manjaro Linux and I have installed R & R Studio and haven't ran onto any problem so far.
All the necessary packages seem to be already installed in my laptop.
One out of the two files I tried to knit (each one separately) used to knit without problem about two months ago.
Each time I try to knit any of the files I get the following error message:
processing file: lab_markdown.Rmd
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/home/iason/R/x86_64-pc-linux-gnu-library/4.0/stringi/libs/stringi.so':
libicui18n.so.67: cannot open shared object file: Δεν υπάρχει τέτοιο αρχείο ή κατάλογος
Calls: ... namespaceImport -> loadNamespace -> library.dynam -> dyn.load
Execution halted
Does anyone have a clue about what goes wrong?
(By the way, "Δεν υπάρχει τέτοιο αρχείο ή κατάλογος" means "There is no such file or directory".)
I have installed tidyverse but whenever I try to load it either by typing library(tidyverse) or by selecting it from the list of packages in the environment pane I get this error message:
Error: package or namespace load failed for ‘tidyverse’ in get(Info[i, 1], envir = env):
cannot open file 'C:/Users/MyName/Documents/R/win-library/4.0/rlang/R/rlang.rdb': No such file or directory
In the file path above, however, my name has been spelled incorrectly as my name has an accent above one of the vowels and it appears that RStudio has been unable to process this correctly. Could this be the cause of the issue and if so is there a way around it? I have tried changing the working directory to the file path mentioned in the error message but this did not help anything.
I am also having trouble creating RMarkdown files. When I click 'Knit' I get a similar error message:
Error in get(Info[i, 1], envir = env) :
cannot open file 'C:/Users/MyName/Documents/R/win-library/4.0/evaluate/R/evaluate.rdb': No such file or directory
Calls: :: ... asNamespace -> loadNamespace -> registerS3methods -> get
Execution halted
I recently downloaded R4.0 and RStudio 1.2.5042 if that makes any difference. Any help at all would be appreciated.
When using R Markdown, R Studio warned me the following message : "Rendering R Markdown documents requires an updated version of the yaml package". So I installed the latest version of the package yaml (2.2.0). But since then, I cannot knit any document in Rmarkdown (even the template or documents that were working just fine before).
I tried downloading older versions of yaml but I get the same message as at the beginning ("requires an updated version").
When I knit a document, I get the following error :
Error in yaml::yaml.load(..., eval.expr = TRUE) :
unused argument (eval.expr = TRUE)
Calls: <Anonymous> ... parse_yaml_front_matter -> yaml_load -> <Anonymous>
I had the unused argument (eval.expr = TRUE) problem after updating RStudio. Somehow it messed up with the R installation and an .Rmd that worked before, stopped working with that error.
What did the trick for me was removing yaml and installing it again.
> remove.packages("yaml")
> install.packages("yaml")
>
I'm trying for the first time to add some vignettes in my package. Everything is ok on my computer. No warning, no error. Then I uploaded it to the CRAN windows builder
devtools::check_win_release()
And I got this warning relative to vignettes:
* checking re-building of vignette outputs ... [7s] WARNING
Error in re-building vignettes:
...
Warning in engine$weave(file, quiet = quiet, encoding = enc) :
The vignette engine knitr::rmarkdown is not available, because the rmarkdown package is not installed. Please install it.
Failed with error: 'there is no package called 'rmarkdown''
Quitting from lines 172-178 (las.Rmd)
Error: processing vignette 'las.Rmd' failed with diagnostics:
cannot open the connection
Execution halted
I don't think that this issue is related to the content of the package. Can I assume that it is an "ok" warning? Can I fix it?
My DESCRIPTION file contains:
Suggests: knitr
VignetteBuilder: knitr
My vignettes/ folder contains one Rmd file
My inst/doc/ folder contains the Rmd R and html auto generated files relative the the original Rmd file.
You need to add rmarkdown in your Suggests.