R can not be installed in install_github problems and solutions encountered

First, let's take a step into the routine
I installed the package recharts normal wording, that is less like this:

install.packages("devtools")
#devtools::install_github("madlogos/recharts")

However, for today, for me, it would be too naive, first into the first pit:
Can not open URL'http: //yihui.name/xran/src/contrib/PACKAGES 'Warning in install.packages: from zip file to extract gone wrong 1:00
similar error can not be accessed, the first step in the solution is to change the image package. In Tools-> Global Options-> packages-> change- > china Beijing as shown below:
Here Insert Picture Description
This may be the default setting new versions of R for foreign version, not encountered similar problems mirrored on previous versions, to solve the finish here, if it is a little simple point problem can be solved, but I have just begun.

The second issue, to be downloaded in https://cran.rstudio.com/bin/windows/Rtools/ site rtools error is probably so written, I have been unable to restore specific, I believe we can understand this error, Download is not frozen or locked rtools, pay attention to choose the path automatically added when you install, or have to manually add, prone to error. This step down, the normal package can be installed.

The third problem, which is the ultimate question,
with error:
failed The Handshake to receive ssl / TLS Connection failed The GitHub
has never been able to access github, checked a lot of information, some say that IE is a problem, a check of the SSL option class, but I did not start to find this place, but it seems this method is quite simple, if you encounter similar problems can go to Baidu try, but fortunately found a solution in the following website.
https://blog.csdn.net/Allen_jinjie/article/details/103361386/
open git bash, enter the following code

$ git config --global http.sslBackend "openssl"
$ git config --global http.sslCAInfo c://program files//R//R-3.4.3//library//openssl//cacert.pem(此为R中cacert.pem的文件路径)

Run exit after completing reopen R, and then perform the installation command

install.packages("devtools")
devtools::install_github("madlogos/recharts")

OK.

Published 20 original articles · won praise 3 · Views 3524

Guess you like

Origin blog.csdn.net/qq_41858657/article/details/104707330