asking for help

Hello everyone. I have a problem that has been bothering me for a month now, and I urgently need your help. I am unable to execute an R Markdown code (knit), even though each chunk executes correctly. Here is the error message I am getting:

""Erreur dans file(filename, "r", encoding = encoding) :
impossible d'ouvrir la connexion
Appels : source -> file
De plus : Message d'avis :
Dans file(filename, "r", encoding = encoding) :
impossible d'ouvrir le fichier 'renv/activate.R' : No such file or directory
ExĂ©cution arrĂȘtĂ©e ""

Hi @vanes, welcome!

Try to check the current working directory:

getwd() # show you directory

You could set the working directory:

setwd("/path/to/directory")

Maybe you made an Rstudio update ?

1 Like

I have updated RStudio several times, installed and uninstalled it.
This message appears even the first time I open RStudio after installation.

This problem started when I installed the 'renv' package, a virtual environment. It bothered me so much that I uninstalled it
:pensive: :sob:

If it is still a problem, you might try resetting RStudio's state as described here.

This topic was automatically closed 90 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.