I am trying to download the tsdyn package from github (it has not yet been updated on the tap), but my proxy server does not allow me to connect to github.
library(devtools) install_github("MatthieuStigler/tsDyn", ref="Dev94", subdir="tsDyn") Downloading github repo MatthieuStigler/ tsDyn@Dev94 Erreur dans function (type, msg, asError = TRUE) : Failed to connect to api.github.com port 443: Connection refused
Then I downloaded .zip and tried to install the package from .zip and got this error:
Erreur dans read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : impossible d'ouvrir la connexion De plus : Message d'avis : In read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : impossible d'ouvrir le fichier compressé 'tsDyn-master/DESCRIPTION', cause probable : 'No such file or directory'
I do not understand, since I can find the DESCRIPTION file in the repository. I think he is trying to connect to the Internet, which is not allowed by my professional connection. I found that some people with Linux managed to load them with a port other than 443 (port 8000 should be allowed, I think, but not sure), but I have windows 7. I have administrator credentials and it doesn’t work, when I try to use R as an administrator. I really don’t know anything about setting up a proxy server, so if you have any ideas, please try to be more specific regarding the actions that I should do.
Thank you very much in advance!
Edit1: I tried your suggestion and deleted the unnecessary level in the file repository, I did
Rscript -e "install.packages ('C:/Users/stephanie/Downloads/tsDyn.zip',repos=NULL) "
and I received from the terminal "Installing the package in C: /Users/stephanie/Documents/R/win-library/3.1" (since "lib" is not specified). It seemed to work, but when I use the library command (tsDyn ) in RI received "Erreur dans library (tsDyn)", "tsDyn" n'est pas un nom correct de install installé "(this is not the correct name of the installed package in English, I think). Although the files exist in the win-library, but I noticed that the MD5 and INDEX files, which are always present in other package directories, are missing here. Idea?
Edit2: I found a solution by uninstalling as indicated at an unnecessary level, I used the following devtools install function and worked (offline) ...
library(devtools) install("C:/Users/stephanie/Downloads/tsDyn")
I really don't understand the difference with the terminal team, so if someone can give me a hint, I solved my pb, but I would be interested to understand how to do it!