R软件包-tidyselect安装失败

时间:2019-07-04 17:38:31

标签: r r-package tidyselect

尝试在amazon linux上安装tidyselect R pacakge时,失败并显示错误:软件包“ tidyselect”的延迟加载失败。请指导我安装此软件包,请参考以下输出

  let count = 0;
  let hashTable = {};

  for (let i = 0; i < arr.length; i++) {

    let sumMinusElement = k - arr[i];


    if (hashTable[sumMinusElement.toString()] !== undefined) { 
      count +=1;
    }

    hashTable[arr[i].toString()] = arr[i];

  }

  return count;

}

countPairs([3, 5, 2, -4, 8, 11], 7);

错误消息

bash-4.2# /usr/bin/R CMD INSTALL tidyselect_0.2.5.tar.gz 
* installing to library ‘/usr/lib64/R/library’
* installing *source* package ‘tidyselect’ ...
** package ‘tidyselect’ successfully unpacked and MD5 sums checked
** libs
g++ -m64  -I/usr/include/R -DNDEBUG  -I"/usr/lib64/R/library/Rcpp/include" -I/usr/local/include   -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -c RcppExports.cpp -o RcppExports.o
g++ -m64  -I/usr/include/R -DNDEBUG  -I"/usr/lib64/R/library/Rcpp/include" -I/usr/local/include   -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -c combine_variables.cpp -o combine_variables.o
g++ -m64 -shared -L/usr/lib64/R/lib -L/usr/local/lib64 -o tidyselect.so RcppExports.o combine_variables.o -L/usr/lib64/R/lib -lR
installing to /usr/lib64/R/library/tidyselect/libs
** R
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  namespace ‘rlang’ 0.1.2 is being loaded, but >= 0.2.2 is required
ERROR: lazy loading failed for package ‘tidyselect’
* removing ‘/usr/lib64/R/library/tidyselect’
bash-4.2# 

0 个答案:

没有答案