How to lemmatize using custom R command

Hi guys,

Lemmatizing words often provides different forms of the word (e.g, human = man, men, woman, women) and can greatly improve dictionary-based text analysis.

That is why I have installed the udpipe R package and created a ‘Custom R Command’ to create a new column called ‘lemma’ with the results. However, when running my code (which works fine in R Studio), I get this error message:

could not find function “udpipe”

Please see my code below and let me know what I’m doing wrong:

mutate(lemma = udpipe(as.character(token), "english"))

Thanks,
Emmanuel