Have tried using github function ..
devtools::install_github("RevolutionAnalytics/rhdfs", subdir = "pkg")
but unable to install it. got below error.
devtools::install_github("RevolutionAnalytics/rhdfs", subdir = "pkg")
Downloading GitHub repo RevolutionAnalytics/rhdfs@master
checking for file ‘/tmp/RtmpW7WUX5/remotes1cc6621f212/RevolutionAnalytics-rhdfs-835d4e5/pkg/DESCRIPTION’
─ preparing ‘rhdfs’:
checking DESCRIPTION meta-information
─ checking for LF line-endings in source and make files
─ checking for empty or unneeded directories
─ building ‘rhdfs_1.0.8.tar.gz’
Installing package into ‘/home/cdsw/R’
(as ‘lib’ is unspecified)
- installing source package ‘rhdfs’ ...
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error: package or namespace load failed for ‘rhdfs’:
.onLoad failed in loadNamespace() for 'rhdfs', details:
call: fun(libname, pkgname)
error: Environment variable HADOOP_CMD must be set before loading package rhdfs
Error: loading failed
Execution halted
ERROR: loading failed
- removing ‘/home/cdsw/R/rhdfs’
Error in i.p(...) :
(converted from warning) installation of package ‘/tmp/RtmpW7WUX5/file1cc65323cf4/rhdfs_1.0.8.tar.gz’ had non-zero exit status