Error in package 'topicmodels' [closed]

1

I'm using RStudio to make my scrits. I try to install a package named topicmodels through the command

install.packages("topicmodels")

However, I get the following error message:

ERROR: dependency ‘tm’ is not available for package ‘topicmodels’.

RStudio Version: Version 1.1.456. Operating System: Ubuntu 16.04

How would I solve this?

    
asked by anonymous 22.08.2018 / 02:55

1 answer

2

In R, do:

install.packages('tm')
install.packages('topicmodels')

If this does not work, open the terminal (Ctrl + Alt + T) and execute:

sudo apt-get install gsl-bin libgsl2

and then

sudo apt-get install gsl-bin libgsl-dev

type Y when prompted.

After, go to R e:

install.packages('topicmodels')

I tried it here and it worked.

    
22.08.2018 / 03:19