R包依赖地狱。如何突破呢?

时间:2017-11-21 14:11:50

标签: r packages

尝试从CRAN安装软件包'gsbufn'来解决依赖关系,但这取决于安装期间无法找到的'proto':

* installing *source* package ‘gsubfn’ ...
** package ‘gsubfn’ successfully unpacked and MD5 sums checked
** R
** demo
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package ‘gsubfn’
    finding HTML links ... done
    as.function.formula                     html
    fn                                      html
    gsubfn-package                          html
    gsubfn                                  html
    match.funfn                             html
    read.pattern                            html
    strapply                                html
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error : package ‘proto’ required by ‘gsubfn’ could not be found
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘~/R/x86_64-redhat-linux-gnu-library/3.3/gsubfn’

但是,安装'proto'并使用library()和/或require()加载。我的.libPaths()是正确的,一致的,我可以看到文件系统上的原型文件。

任何人都知道为什么'gsubfn'坚决拒绝承认'proto'的存在以及如何强迫它表现出来,拜托?

这是针对R 3.3.3。

PI = zeros(300,1);
area = zeros(300,1);
for chnum=1:300
   PI(chnum)=.... ;
   area(chnum)=.... ;
end
save ('Result.mat' ,'chnum' ,'PI' ,'area');

0 个答案:

没有答案