I have RHEL OS and running a 3 node HDP 2.6 cluster. R installation "yum install R" did n't install optional packages such as knitr etc. So I tried to install optional packages at server R command line following script:
> install.packages('knitr', repos = 'http://cran.us.r-project.org')
Installing package into ‘/usr/lib64/R/library’
(as ‘lib’ is unspecified)
Warning: unable to access index for repository http://cran.us.r-project.org/src/contrib:
cannot open URL 'http://cran.us.r-project.org/src/contrib/PACKAGES'
package ‘knitr’ is not available (for R version 3.4.2)
), and manually copied to "/usr/lib64/R/library". After that Zeppelin spark2.r code error prompted me to repeat the process for other packages in stringr, and stringi. After adding stringi I get error, that I 'm not sure how to solve it.
I can set Zeppelin interpreter config parameter "zeppelin.R.knitr" to false, and Zeppelin works, but it has limited display with this setting false. How do I fix this problem?