wsl部署r环境+配置rstudio—server 如何正常使用copilot?
首先确保代理正确,这里需要注意一点,wsl——setting里面开启网络镜像之后,正常启用终端,代理是正常的,但是rstudio—server里面的似乎是平行世界,没开启代理,需要注意以下。
·
问题1:rstudio—server 本身无法启用copilot
通过添加到copilot-enabled=1/etc/rstudio/rsession.conf
转到工具 / 全局选项... / Copilot 并勾选启用 GitHub Copilot
问题2:安装copilot出错
Error in download.file(copilotUrl, destfile, mode = “wb”) :
internet routines cannot be loaded
首先确保代理正确,这里需要注意一点,wsl——setting里面开启网络镜像之后,正常启用终端,代理是正常的,但是rstudio—server里面的似乎是平行世界,没开启代理,需要注意以下。
Sys.getenv("http_proxy")
Sys.getenv("https_proxy")
#如果返回值为空,说明没有设置代理;如果有值,则会显示代理的地址和端。
#临时代理
export http_proxy="http://127.0.0.1:7890"
export https_proxy="http://127.0.0.1:7890"
export ftp_proxy="http://127.0.0.1:7890"
options(download.file.method = "wget")
更多推荐



所有评论(0)