0

I am trying to install the package "topicmodels" using juypter and the warning message "non-zero exit status" occurs every time.

Beforehand I wrote my code in Rstudio, everything worked fine. Now, I am switching to a jupyter-lab and face different problems.

Below you can find my code as well as the warning message.

install.packages("topicmodels", lib = "~/Packages", repos="http://cran.us.r-project.org")
Warning message in install.packages("topicmodels", lib = "~/Packages", :
“installation of package ‘topicmodels’ had non-zero exit status”

What I tried so far:

  • Check, if it`s about this specific package: I could install other packages with this code line, so it is not about the path or similar.
  • I added details about the repository and lib (see above) as recommended here, but nothing changed.
  • Installed the package "gls" as recommended e.g., here I did this with the same command as above (install.packages("gls", ...)) and it yielded in the same warning message "non-zero exit status".

I am beginner with jupyter, so any help with this and advice is much appreciated!

Francesca
  • 73
  • 1
  • 6
  • Typically there is more output from `install.packages` with a warning like that, indicating what the real underlying error is. It could be due to many things, but common ones include not having requisite OS-level packages/libraries available. For `topicmodels`, that would be `libgsl*` and likely some other OS-level dependencies. ***OR*** .. you can try to install the binary version by changing your `repos` to something within Posit's package manager, see https://packagemanager.rstudio.com/client/#/repos/2/packages/topicmodels – r2evans Mar 31 '23 at 13:55

0 Answers0