为什么我无法加载PBS模型包?

时间:2017-02-14 07:03:54

标签: r installation

     install.packages("PBSmodelling")
   Installing package into ‘/Users/apple/Library/R/3.2/library’
     (as ‘lib’ is unspecified)
     open URL’http://cran.us.r-project.org/bin/macosx/mavericks/contrib/3.2/PBSmodelling_2.67.266.tgz'
     Content type 'application/x-gzip' length 3361768 bytes (3.2 MB)
       ==================================================
        downloaded 3.2 MB


   package is located:
    /var/folders/gg/zk53_6b10_91l8wnf5y4_blm0000gn/T//RtmpPrc2GY/downloaded_packages 

安装包是成功的,但是,当我将包加载到工作区时,它报告错误:

      library(PredictABEL)
   need packages:PBSmodelling
     Error : loadNamespace() 'tcltk' .onLoad fail,details:
     use: dyn.load(file, DLLpath = DLLpath, ...)
     error: cannot load target object‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/tcltk/libs/tcltk.so’::
     dlopen(/Library/Frameworks/R.framework/Versions/3.2/Resources/library/tcltk/libs/tcltk.so, 10): Library not loaded: /opt/X11/lib/libX11.6.dylib
     Referenced from: /Library/Frameworks/R.framework/Versions/3.2/Resources/library/tcltk/libs/tcltk.so
     Reason: image not found
     else: Warning message:
     run''/usr/bin/otool' -L '/Library/Frameworks/R.framework/Resources/library/tcltk/libs//tcltk.so''
error: cannot load package ‘PBSmodelling’
     xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

0 个答案:

没有答案