Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Using R in Zeppelin, HDP 2.6.3 missing package

avatar
New Member

Hello,

I want to try R in Zeppelin out but eaven in the pre created note [R(SparkR)] I've got some errors. First some errors like "no 'knitr' Package" but I managed to fix it in the shell with command <>install.packages("knitr") </>.

Now I get this Error Message:

Error in library(data.table): " there is no package called ‘data.table’ "

Anybody got a hint ?

48406-hw.png

1 ACCEPTED SOLUTION

avatar
Super Guru

@Mario Borys,

Try installing the package and run the script.Login to R shell and run the command

# R
# install.packages('data.table')

Thanks,

Aditya

View solution in original post

4 REPLIES 4

avatar
Super Guru

@Mario Borys,

Try installing the package and run the script.Login to R shell and run the command

# R
# install.packages('data.table')

Thanks,

Aditya

avatar
New Member

Ehm, my bad.

I tried this but i must have a typo, i installed the package. Thank you.

avatar
New Member

@Aditya Sirna @Mario Borys @Geoffrey Shelton Okot

I have got limited access to internet for my cluster and I am facing the same issue and I believe knitr should be installed by command - R -e "install.packages('knitr', repos = 'http://cran.us.r-project.org')"

Am I Correct?

Also, what all packages are to be installed to make sure Zeppelin works fine with R?

Please help me on this.

avatar
New Member

How did you fix the issue java.lang.RuntimeException: Error in library("knitr"): there is no package called ‘knitr’ ?