【问题标题】:How to open these features in r?如何在 r 中打开这些功能?
【发布时间】:2021-11-13 19:12:49
【问题描述】:

我无法在 r 中打开这些资源。

source("http://www.zzlab.net/GAPIT/emma.txt")
source("http://www.zzlab.net/GAPIT/gapit_functions.txt")
source("http://www.zzlab.net/FarmCPU/FarmCPU_functions.txt")

出现如下错误:

文件中的错误(文件名,“r”,编码 = 编码):无法打开 连接
另外:警告消息:在文件中(文件名,“r”, encoding = encoding) : InternetOpenUrl failed: '这个主机名 证书无效或不匹配'

【问题讨论】:

    标签: r


    【解决方案1】:

    似乎可以在我的机器上工作

    r_path <- tempfile(fileext = ".R")
    r_con  <- file(r_path)
    writeLines(text = readLines("http://www.zzlab.net/GAPIT/emma.txt"), con = r_con) # taken from: https://stackoverflow.com/a/2470277/6105259
    close(r_con)
    source(r_path)
    

    【讨论】:

      猜你喜欢
      • 2020-10-03
      • 2022-01-06
      • 1970-01-01
      • 2021-09-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-10-18
      相关资源
      最近更新 更多