rstudio / cloudml

R interface to Google Cloud Machine Learning Engine
https://tensorflow.rstudio.com/tools/cloudml/
65 stars 24 forks source link

In OS X first `gcloud_install()` does not call `gcloud init` #177

Closed javierluraschi closed 6 years ago

javierluraschi commented 6 years ago

In OS X under an RStudio terminal:

(source ~/.bash_profile)  && echo $PATH
/Users/javierluraschi/miniconda2/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Same behavior running under plain terminal:

'/var/folders/ks/wm_bx4cn70s6h0r5vgqpsldm0000gn/T//RtmphkSs1E/install_google_cloud_sdk-29e71f580cd2.bash' '--install-dir=/Users/javierluraschi' && (source ~/.bash_profile || true) && gcloud init
...
[/Users/javierluraschi/.bash_profile] has been updated.

==> Start a new shell for the changes to take effect.

For more information on how to get started, please visit:
  https://cloud.google.com/sdk/docs/quickstarts

-bash: gcloud: command not found

One potential fix seems to be to not use parenthesis...

source ~/.bash_profile  && echo $PATH
/Users/javierluraschi/google-cloud-sdk/bin:/Users/javierluraschi/miniconda2/bin:/Users/javierluraschi/miniconda2/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
javierluraschi commented 6 years ago

Fixed with https://github.com/rstudio/cloudml/pull/178.