-# "no-sdk" exists then skip the Python and R stuff.
-if [[ ! -f /usr/src/arvados/doc/no-sdk ]] ; then
- cd /usr/src/arvados/sdk/R
- R --quiet --vanilla --file=install_deps.R
-
- export PYCMD=python3
- pip_install pdoc
+# "no-sdk" exists then skip installing R stuff.
+if [[ ! -f no-sdk ]] ; then
+ env -C ../sdk/R R --quiet --vanilla --file=install_deps.R