rstudio / packrat

Packrat is a dependency management system for R
http://rstudio.github.io/packrat/
401 stars 89 forks source link

Issue to install a package from github #586

Closed ArthurPERE closed 4 years ago

ArthurPERE commented 4 years ago

Hello,

I have an issue with packrat when i install a package directly from github :

remotes::install_github("yanlinlin82/ggvenn")
Downloading GitHub repo yanlinlin82/ggvenn@master
   Error in file(filename, "r", encoding = encoding) : 
     impossible d'ouvrir la connexion
   Calls: source -> file
   De plus : Warning message:
   In file(filename, "r", encoding = encoding) :
     impossible d'ouvrir le fichier 'packrat/init.R' : Aucun fichier ou dossier de ce type
   Exécution arrêtée
Erreur : Failed to install 'ggvenn' from GitHub:
  System command error, exit status: 1, stdout + stderr:
E> Error in file(filename, "r", encoding = encoding) : 
E>   impossible d'ouvrir la connexion
E> Calls: source -> file
E> De plus : Warning message:
E> In file(filename, "r", encoding = encoding) :
E>   impossible d'ouvrir le fichier 'packrat/init.R' : Aucun fichier ou dossier de ce type
E> Exécution arrêtée

When i install a package from CRAN, it's alright and it work. I try from the remotes package to and it's the same error. The two packages are external packages.

I change the permission of the package.

Help me, please, Arthur

kevinushey commented 4 years ago

I think this is an issue with the version of callr currently on CRAN.

ArthurPERE commented 4 years ago

Hello,

I try the version 3.3.0 of the package callr, it didn't work but the version 3.2.0 work.

So it's really a problem with callr.

Thank you, Arthur