Reputation: 21
Running this code I received the "r session aborted: R encountered a fatal error"
I tried uninstalling and reinstalling R 4.3.0 and most recent version of RStudio. This is the code I ran:
library(pdftools)
library(tesseract)
library(tidyr)
library(tidyverse)
library(tidytext)
require(quanteda)
require(topicmodels)
files <- list.files(ignore.case = TRUE, pattern = "pdf$")
files2 <- lapply(files, pdf_text)
I also tried installing the R 4.30 patched version as it was recommended on this forum, but the same happened.
Does anyone have any idea what I could be doing wrong? I have used these lines in the past and never any problem.Previously I ran it on around 300 pdfs, this time it is 1400. I think that could be the problem, but I am not sure. I am also considering using python for this analysis, so if that is better, I could try that too.
Thank you!
Upvotes: 2
Views: 566