Rダウンロードファイルが接続を開くことができず、InternetOpenUrlが失敗しました



R Download File Cannot Open Connection



RstudioはInternetOpenUrlでファイルをダウンロードできませんでした

> source('http://www.statmethods.net/RiA/wmc.txt') Error in file(filename, 'r', encoding = encoding) : cannot open the connection In addition: Warning message: In file(filename, 'r', encoding = encoding) : InternetOpenUrl failed:'Security channel support error'

1.最初の方法、オプションの変更

> options(download.file.method='libcurl', url.method='libcurl') > source('http://www.statmethods.net/RiA/wmc.txt') > wmc

成功



2番目の解決策は、Rstudioの設定を変更することです

Rstudioを設定し、[ツール]> [グローバルオプション]> [パッケージ]、[HTTPにInternetExplorerライブラリ/プロキシを使用する]のチェックを外します。最初の方法はすでに利用可能であるため、私はこの方法を試していません。参考のために。