Knit to HTML Error


I would appreciate any guidance to resolve the "Error in eval(x, envir = envir) : object 'TRUE0' not found Calls: ...process_group.block -> call_block -> eval_lang -> eval -> eval Execution halted" at Line 39 when I execute the 'Knit to HTML'.

RMarkdown suggests this error at Line 39, y2016 <- df[-grepl("Fionayyy",df$Name),] which executes just fine to remove the misspelled name "Fionayyy" from my dataframe and renames it to y2016.

My sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

Matrix products: default

[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] bindrcpp_0.2.2 RCurl_1.95-4.11 bitops_1.0-6 ggplot2_3.0.0 rvest_0.3.2 xml2_1.2.0 stringi_1.2.4 tidyr_0.8.1
[9] dplyr_0.7.6 XML_3.98-1.16

loaded via a namespace (and not attached):
[1] Rcpp_0.12.18 pillar_1.3.0 compiler_3.5.1 plyr_1.8.4 bindr_0.1.1 tools_3.5.1 digest_0.6.17
[8] evaluate_0.11 tibble_1.4.2 gtable_0.2.0 pkgconfig_2.0.2 rlang_0.2.2 rstudioapi_0.7 yaml_2.2.0
[15] stringr_1.3.1 withr_2.1.2 httr_1.3.1 knitr_1.20 rprojroot_1.3-2 grid_3.5.1 tidyselect_0.2.4
[22] glue_1.3.0 R6_2.2.2 rmarkdown_1.10 purrr_0.2.5 magrittr_1.5 backports_1.1.2 scales_1.0.0
[29] htmltools_0.3.6 assertthat_0.2.0 colorspace_1.3-2 lazyeval_0.2.1 munsell_0.5.0 crayon_1.3.4


Could you please turn this into a self-contained reprex (short for reproducible example)? It will help us help you if we can be sure we're all working with/looking at the same stuff.


If you've never heard of a reprex before, you might want to start by reading the help page. The reprex dos and don'ts are also useful.

What to do if you run into clipboard problems

If you run into problems with access to your clipboard, you can specify an outfile for the reprex, and then copy and paste the contents into the forum.

reprex::reprex(input = "fruits_stringdist.R", outfile = "")

For pointers specific to the community site, check out the reprex FAQ.