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

[Braincloud] Error in tm::termFreq(text, control = list(removePunctuation = TRUE, tolower = TRUE, : > inherits(doc, "TextDocument") || is.character(doc) is not TRUE #11

Open
Eminmpenza opened this issue Aug 8, 2024 · 0 comments

Comments

@Eminmpenza
Copy link

Hi,

I'm trying to generate a braincloud from severals pdf files from one of my research. All of the files are in the same folder as the scripts.

Unfortunately, R. Studio keeps returning an error :

Error in tm::termFreq(text, control = list(removePunctuation = TRUE, tolower = TRUE, :
inherits(doc, "TextDocument") || is.character(doc) is not TRUE

I've tried all those following different scripts and the same error keeps being displayed in every case

braincloud()
braincloud(image="brain1", text.size=0.6, colours.replicate=FALSE)

braincloud(pdf.file=".",
            words=NULL,
            frequency=NULL,
            word.length.min=4,
            word.length.max=Inf,
            freq.min=10,
            freq.max=Inf,
            image=NULL,
            text.size=0.5,
            colours="neuropsychology",
            colours.replicate=TRUE)

Here are some sceenshoots about the issue.

image
image
image

Does anyone know how to fix it ?

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

1 participant