Skip to content
Prev 13074 / 21312 Next

[Bioc-devel] Tensorflow support for bioconductor packages

FWIW the tensorflow authors didn't opt for automatic lazy installation:

   > run_example("hello.R")
   Error: Installation of TensorFlow not found.

   Python environments searched for 'tensorflow' package:
    /usr/bin/python2.7
    /usr/bin/python3.5

   You can install TensorFlow using the install_tensorflow() function.

Would be interesting to know why.

install_tensorflow() has various arguments and the chances that it
will just work and do the right thing when called with no argument
are low. There is also this 'restart_session' argument that is TRUE
by default and will only work within RStudio. This suggests that after
successful completion R needs to be restarted before the tensorflow
package becomes operational. I didn't test that but that's something
you might want to investigate before opting for lazy installation.

Also it might help to look at how the handful of CRAN packages that
depend on tensorflow handle this. These packages are listed in the
reverse dependencies section of the tensorflow landing page:

   https://cran.r-project.org/web/packages/tensorflow/index.html

We'll install the tensorflow Python module on the build machines when
you submit your package.

Cheers,
H.
On 03/29/2018 10:08 AM, Michael Lawrence wrote: