But the updated package 'sentimentr' does not provide both these functions. I tried to install the archived version 'sentiment' from a github link, but after successful installation, the functions still do not work.
How do I resolve this issue? Or which package provides these functions in 3.4.4 version?
I'm a little confused by this — it is true that sentimentr is not an updated version of sentiment (they are totally separate packages), so what package are you talking about when you refer to "the updated package"? (or maybe you intended to say something else?)
Can you explain this in more detail? How do you know the installation was successful? What error messages (or other unexpected behavior) do you see when you try to run the lines above?
Note: I believe you are interested in making sentiment — or something equivalent — work with R version 3.4.4., not RStudio (see: Differentiating R from RStudio) — RStudio still hasn't made it past version 1.2 . I edited the post title accordingly.
I tried to install 'sentiment' package by checking for a github link. (stackoverflow posts mentioned that 'classify_emotion and classify_polarity' are available only with 'sentiment' package.)
polarities = classify_polarity(clean_tweets, algorithm='bayes')
I get the following error:
Error in classify_polarity(clean_tweets, algorithm = "bayes") :
could not find function "classify_polarity