Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/79.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
在RStudio中加载rgdal时出现问题_R_Gdal_Rstudio - Fatal编程技术网

在RStudio中加载rgdal时出现问题

在RStudio中加载rgdal时出现问题,r,gdal,rstudio,R,Gdal,Rstudio,为什么rgdal无法在RStudio(0.94.110)中加载,而不能在R(2.13.2)中加载 [编辑以删除无关信息] > library(rgdal) Loading required package: methods Loading required package: sp Geospatial Data Abstraction Library extensions to R successfully loaded Loaded GDAL runtime: GDAL 1.8.1, r

为什么
rgdal
无法在
RStudio
(0.94.110)中加载,而不能在
R
(2.13.2)中加载

[编辑以删除无关信息]

> library(rgdal)
Loading required package: methods
Loading required package: sp
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.8.1, released 2011/07/09
Path to GDAL shared files: /Library/Frameworks/GDAL.framework/Versions/1.8/Resources/gdal
Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009, [PJ_VERSION: 470]
Path to PROJ.4 shared files: (autodetected)
但是,在RStudio中:

R version 2.13.2 (2011-09-30)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
[再次编辑]

> library(rgdal)
Loading required package: methods
Loading required package: sp
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/Users/abarbour/kook.processing/R/PACKAGES/rgdal/libs/x86_64/rgdal.so':
  dlopen(/Users/abarbour/kook.processing/R/PACKAGES/rgdal/libs/x86_64/rgdal.so, 6): Symbol not found: ___emutls_get_address
  Referenced from: /usr/local/lib/libstdc++.6.dylib
  Expected in: /Library/Frameworks/R.framework/Resources/lib/libgcc_s.1.dylib
 in /usr/local/lib/libstdc++.6.dylib
Error: package/namespace load failed for 'rgdal'
有人知道为什么会这样吗?是否存在某种我不知道的
RStudio
默认值

请注意,
rgdal
是使用以下命令安装的,并且已经安装了KyngChaos():

RStudio
支持人员应向Josh提供的积分(请参阅)

RStudio
中:

> setRepositories()
[输入“12”]

给出了正常的负载行为:

> library(rgdal)
Loading required package: methods
Loading required package: sp
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.8.0, released 2011/01/12
Path to GDAL shared files: /Users/abarbour/kook.processing/R/PACKAGES/rgdal/gdal
Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009, [PJ_VERSION: 470]
Path to PROJ.4 shared files: /Users/abarbour/kook.processing/R/PACKAGES/rgdal/proj
RStudio
支持人员应向Josh提供的积分(请参阅)

RStudio
中:

> setRepositories()
[输入“12”]

给出了正常的负载行为:

> library(rgdal)
Loading required package: methods
Loading required package: sp
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.8.0, released 2011/01/12
Path to GDAL shared files: /Users/abarbour/kook.processing/R/PACKAGES/rgdal/gdal
Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009, [PJ_VERSION: 470]
Path to PROJ.4 shared files: /Users/abarbour/kook.processing/R/PACKAGES/rgdal/proj
你已经发了吗?这也许是问这个问题的好地方。是的(),但我链接到了这个问题,因为格式化对眼睛来说更容易。你已经发布了吗?这可能是问这个问题的更好地方。是的(),但我链接到了这个问题,因为格式化对眼睛来说要容易得多。
> library(rgdal)
Loading required package: methods
Loading required package: sp
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.8.0, released 2011/01/12
Path to GDAL shared files: /Users/abarbour/kook.processing/R/PACKAGES/rgdal/gdal
Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009, [PJ_VERSION: 470]
Path to PROJ.4 shared files: /Users/abarbour/kook.processing/R/PACKAGES/rgdal/proj