Organizing my work in distinct R projects, how can I use reticulate::conda_install()
to install specific versions of python modules on a per-project basis?
Setting up reticulate
, I have followed tips from this blog post. Namely, using reticulate::conda_create()
and reticulate::conda_install()
within the directory of the R project I'm working on.
However, for the sake of reproducibility, I want to account for the versions of python packages installed this way. How can I do so? According to the function's reference page, there's no function parameter to specify the version of the required python module being installed. Thus, if I run the same script a year from now, how could I guarantee that conda_install()
would install the same versions of the python modules as installed today?