Error in loadNamespace(name) : there is no package called ‘reticulate’

Good morning,

First of all thank you for your help and great posts in the community.

I've had some issues with the package reticulate and I've decided to remove it with remove.packages("reticulate"). Since then every time I load Rstudio (but even R from terminal), even if I don't type anything nor try to load packages, I get this error:

Error in loadNamespace(name) : there is no package called ‘reticulate’

It's obvious there is no package called reticulate since I removed it. Can you help me to solve this issue?

sessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.4 LTS

Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1

locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached):
[1] compiler_4.0.2 tools_4.0.2

Thanks

Francesco

Do you have custom startup files (i.e. Rprofile.site, Renviron.site, .Renviron, .Rprofile)? Are you restoring an .RData file on startup?

Thank you for your quick reply.

I did not remember about having an .Rprofile but yes, I have this one:

reticulate::use_condaenv(condaenv = "r-tensorflow", conda = "/home/francesco/miniconda3/condabin/conda
")

reticulate::py_config()

Should I remove it?

Also, if that's the issue could you explain me why or suggest where to read about it? I am a beginner user.

Thanks

Yes, you should.
The commands on that file get executed when R starts and since you no longer have reticulate installed, it causes the error message.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.