For the record, I have read the following threads and articles:
- Conda for Data Science
- How to install R packages that are not available in “R-essentials”?
- Cannot install R packages in Jupyter Notebook
However, if I use typical R approach:
.libPaths()
# '/home/ytu/anaconda3/lib/R/library'
install.packages("RPostgreSQL", lib = .libPaths(), repo = "https://cloud.r-project.org/")
It gives me:
Warning message in install.packages("RPostgreSQL", lib = .libPaths(), repo = "https://cloud.r-project.org/"): “installation of package ‘RPostgreSQL’ had non-zero exit status”Updating HTML index of packages in '.Library' Making 'packages.html' ... done
I Googled for a while but cannot get around with this problem. I specified both library path and CRAN mirror link, but it still doesn't work for me.
If I follow instructions of conda approach from the webpage, Tracebacks just flush my terminal at the step of conda build r-rpostgresql
:
Traceback (most recent call last): File "/home/ytu/anaconda3/bin/conda-build", line 11, in sys.exit(main()) File "/home/ytu/anaconda3/lib/python3.6/site-packages/conda_build/cli/main_build.py", line 413, in main execute(sys.argv[1:]) File "/home/ytu/anaconda3/lib/python3.6/site-packages/conda_build/cli/main_build.py", line 404, in execute verify=args.verify) File "/home/ytu/anaconda3/lib/python3.6/site-packages/conda_build/api.py", line 193, in build need_source_download=need_source_download, config=config, variants=variants) File "/home/ytu/anaconda3/lib/python3.6/site-packages/conda_build/build.py", line 1944, in build_tree notest=notest, File "/home/ytu/anaconda3/lib/python3.6/site-packages/conda_build/build.py", line 1240, in build utils.check_call_env(cmd, env=env, cwd=src_dir) File "/home/ytu/anaconda3/lib/python3.6/site-packages/conda_build/utils.py", line 678, in check_call_env return _func_defaulting_env_to_os_environ(subprocess.check_call, *popenargs, **kwargs) File "/home/ytu/anaconda3/lib/python3.6/site-packages/conda_build/utils.py", line 674, in _func_defaulting_env_to_os_environ return func(_args, **kwargs) File "/home/ytu/anaconda3/lib/python3.6/subprocess.py", line 291, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/bin/bash', '-e', '/home/ytu/anaconda3/conda-bld/r-rpostgresql_1519543361442/work/conda_build.sh']' returned non-zero exit status 1.
Can anyone give me some suggestions?
OS information by uname -mrs
:
Linux 3.13.0-105-generic x86_64