doc/网络设置.md

1. 网络代理

clash需要开启系统代理(system),否则Map$addLayer无法显示图像。

conda create --name qgis --channel conda-forge mamba
mamba install geemap -c conda-forge
# gcloud info --run-diagnostics
# C:/Users/kong/AppData/Roaming/gcloud/configurations/config_default
[proxy]
type = http
address = localhost
port = 1081

The following solution not working. Because we need to set proxy before R start, other than after. See https://github.com/r-spatial/rgee/issues/73#issuecomment-1186549194 for details.

Sys.setenv(https_proxy="http://127.0.0.1:1081")
Sys.setenv(http_proxy="http://127.0.0.1:1081")
#subl "C:/Program Files/R/R-4.2.1/etc/Rcmd_environ"
http_proxy="http://127.0.0.1:1081"
https_proxy="http://127.0.0.1:1081"
// code .vscode/settings.json
{
  "r.rterm.windows": "c:/ProgramData/Miniconda3/envs/gee/Scripts/radian.exe",
  "terminal.integrated.env.windows": {
    // "PATH": "${env:PATH}",
    "http_proxy":"http://127.0.0.1:1081",
    "https_proxy":"http://127.0.0.1:1081",
  },
}
[Environment]::SetEnvironmentVariable("http_proxy", "http://127.0.0.1:1081", [System.EnvironmentVariableTarget]::User)
[Environment]::SetEnvironmentVariable("https_proxy", "http://127.0.0.1:1081", [System.EnvironmentVariableTarget]::User)


rpkgs/rgee2 documentation built on May 31, 2024, 6:58 p.m.