• R语言
  • 求助chemodiv包计算植物化学多样性

为什么应用chemodiv中的compDis计算化学物质差异时会出现如Calculating compound dissimilarity matrix using Fingerprints...
Error in readLines(url(url)) :
cannot open the connection to 'https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/5320250,5281553,240,7150,998,7410,62374,8785,7559,4133,7654,244,6054,31244,2345/SDF'的报错,连compDis中的examples都运行不出来,有没有大佬懂的

    sevennn

    readLines(url('https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/5320250,5281553,240,7150,998,7410,62374,8785,7559,4133,7654,244,6054,31244,2345/SDF'))

    网络问题吧,这文件试了没问题

    网络应该没问题,Pubchem这个网站我也能进去

      sevennn 可以试一下debug
      看一下是不是网络问题的。
      另外也可以将需要下载的内容先下载到本地,从本地读取的,避免这个网络问题