dominodatalab / DominoDataR

Other
0 stars 1 forks source link

Having a reference to the result of `DominoDataR::datasource_client()` and then restarting R triggers reticulate to ask for miniconda installation #17

Open daattali opened 1 year ago

daattali commented 1 year ago

On a personal Domino deployment version 5.5.2, I create a new RStudio workspace. The workspace comes pre installed with {DominoDataR} 0.2.1

If I run the command client <- DominoDataR::datasource_client() and then restart RStudio, I get a message

No non-system installation of Python could be found.
Would you like to download and install Miniconda?
Miniconda is an open source environment management system for Python.
See https://docs.conda.io/en/latest/miniconda.html for more details.

Would you like to install Miniconda? [Y/n]: 

This does not happen if I remove the variable before restarting the session, or if I run DominoDataR::datasource_client() without saving it to a variable.

Example session:

> client <- DominoDataR::datasource_client()
> rm(client)

Restarting R session...

> client <- DominoDataR::datasource_client()
> rm(client)

Restarting R session...

> client <- DominoDataR::datasource_client()

Restarting R session...

No non-system installation of Python could be found.
Would you like to download and install Miniconda?
Miniconda is an open source environment management system for Python.
See https://docs.conda.io/en/latest/miniconda.html for more details.

Would you like to install Miniconda? [Y/n]: 
daattali commented 1 year ago

Trying to approach it a different way until this is solved, by asking RStudio to let us suppress this https://github.com/rstudio/reticulate/issues/710

daattali commented 1 year ago

Looks like it might be fixed in RStudio in the next release https://github.com/rstudio/rstudio/issues/13109