Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/83.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/opencv/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R 无法安装sf.9_R_Spatial_Sf_Rgdal - Fatal编程技术网

R 无法安装sf.9

R 无法安装sf.9,r,spatial,sf,rgdal,R,Spatial,Sf,Rgdal,我需要获得sf的.9版本才能使用stars和mapsapi(必需的sf=您使用的linux发行版是什么? install.packages("sf", configure.args = "--with-proj-lib=/usr/local/lib/") xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at:

我需要获得sf的.9版本才能使用stars和mapsapi(必需的sf=您使用的linux发行版是什么?
install.packages("sf", configure.args = "--with-proj-lib=/usr/local/lib/")
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
configure: CC: 
configure: CXX:  
checking for gdal-config... no
no
configure: error: gdal-config not found or not executable.
ERROR: configuration failed for package ‘sf’
* removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/sf’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/sf’
Warning in install.packages :
  installation of package ‘sf’ had non-zero exit status
sessionInfo()
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8


attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] sf_0.8-1    rgdal_1.4-8 sp_1.4-1   

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.4         pillar_1.3.1       compiler_3.5.2     class_7.3-14       prettyunits_1.0.2  remotes_2.2.0     
 [7] tools_3.5.2        pkgbuild_1.0.5     tibble_2.1.3       lattice_0.20-38    pkgconfig_2.0.2    rlang_0.4.5       
[13] Matrix_1.2-15      cli_1.1.0          DBI_1.0.0          rstudioapi_0.9.0   curl_3.3           yaml_2.2.0        
[19] xfun_0.4           e1071_1.7-0        dplyr_0.8.5        knitr_1.25         classInt_0.4-2     grid_3.5.2        
[25] tidyselect_0.2.5   glue_1.3.0         data.table_1.12.8  R6_2.3.0           processx_3.4.1     purrr_0.2.5       
[31] callr_3.3.2        magrittr_1.5       units_0.6-2        codetools_0.2-15   ps_1.3.0           assertthat_0.2.0  
[37] KernSmooth_2.23-15 crayon_1.3.4