Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/64.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/0/azure/11.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安装&x27;巴布亚新几内亚';无法加载共享对象_R_Package_Png_Libpng - Fatal编程技术网

R安装&x27;巴布亚新几内亚';无法加载共享对象

R安装&x27;巴布亚新几内亚';无法加载共享对象,r,package,png,libpng,R,Package,Png,Libpng,当我运行install.packages(“png”)时,无论我是在R Studio中运行,还是作为Mac终端的超级用户运行,我都会收到以下错误。我没有成功地为这个问题实施其他解决方案。我正在使用R4.0.2(从3.6.3升级,因为它也不起作用)。我目前唯一的解决方案是使用我大学的虚拟桌面R发行版,因为它在该版本中工作。然而,它是缓慢的,只是不一样 ** testing if installed package can be loaded from temporary location

当我运行install.packages(“png”)时,无论我是在R Studio中运行,还是作为Mac终端的超级用户运行,我都会收到以下错误。我没有成功地为这个问题实施其他解决方案。我正在使用R4.0.2(从3.6.3升级,因为它也不起作用)。我目前唯一的解决方案是使用我大学的虚拟桌面R发行版,因为它在该版本中工作。然而,它是缓慢的,只是不一样

    ** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘png’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/Users/bryce/Library/R/4.0/library/00LOCK-png/00new/png/libs/png.so':
  dlopen(/Users/bryce/Library/R/4.0/library/00LOCK-png/00new/png/libs/png.so, 6): Library not loaded: @rpath/libz.1.dylib
  Referenced from: /Users/bryce/Library/R/4.0/library/00LOCK-png/00new/png/libs/png.so
  Reason: image not found
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Users/bryce/Library/R/4.0/library/png’
Warning in install.packages :
  installation of package ‘png’ had non-zero exit status

The downloaded source packages are in
    ‘/private/var/folders/qd/q49j7g891jn7t368990fflrw0000gn/T/RtmpPhRir5/downloaded_packages’

我尝试通过自制重新安装libpng并重新初始化符号链接来解决这个问题,但我遇到了一个死胡同。

解决:找到了解决方法。在重新下载RStudio之前,必须清除RStudio并下载R。似乎已经解决了这个问题