无法安装最新版本的gganimate软件包,就好像不存在依赖项“ transformr”一样

时间:2018-08-31 11:08:34

标签: r gganimate

All是最新版本的软件,如下所示: R 3.5.1,R studio 1.1.456,Rtools 3.5

您能给我解决方法吗?非常感谢!

以下错误消息:

c:/Rtools/mingw_64/bin/g++ -shared -s -static-libgcc -o transformr.dll tmp.def RcppExports.o align_rings.o sf_packing.o triangulate.o -LD:/R/R-35~1.1/bin/x64 -lR
installing to D:/R/R-3.5.1/library/transformr/libs/x64
** R
** byte-compile and prepare package for lazy loading
Warning: S3 methods '$.bbox', '$.crs', '$<-.sf', '[.sf', '[.sfc', '[<-.sfc', '[[<-.sf', 'st_agr<-.sf', 'st_crs<-.sf', 'st_crs<-.sfc', 'st_geometry<-.data.frame', 'st_geometry<-.sf', 'Ops.crs', 'Ops.sfc', 'Ops.sfg', 'Ops.sgbp', 'aggregate.sf', 'as.data.frame.sf', 'as.data.frame.sfc', 'as.data.frame.sgbp', 'as.matrix.sfg', 'as.matrix.sgbp', 'c.sfc', 'c.sfg', 'cbind.sf', 'dim.sgbp', 'format.sfc', 'format.sfg', 'head.sfg', 'identify.sf', 'identify.sfc', 'is.na.bbox', 'is.na.crs', 'merge.sf', 'plot.sf', 'plot.sfc_CIRCULARSTRING', 'plot.sfc_GEOMETRY', 'plot.sfc_GEOMETRYCOLLECTION', 'plot.sfc_LINESTRING', 'plot.sfc_MULTILINESTRING', 'plot.sfc_MULTIPOINT', 'plot.sfc_MULTIPOLYGON', 'plot.sfc_POINT', 'plot.sfc_POLYGON', 'plot.sfg', 'print.bbox', 'print.crs', 'print.sf', 'print.sf_layers', 'print.sfc', 'print.sfg', 'print.sgbp', 'rbind.sf', 'rep.sfc', 'st_agr.character', 'st_agr.default', 'st_agr.factor', 'st_agr.sf', 'st_as_binary.sfc', 'st_as_binary.sfg', 'st_as_grob.CIRCULARSTRING', 'st_as_grob.COMPOUN [... truncated]
Error in library.dynam(lib, package, package.lib) : 
  DLL 'sf' not found: maybe not installed for this architecture?
ERROR: lazy loading failed for package 'transformr'
* removing 'D:/R/R-3.5.1/library/transformr'
In R CMD INSTALL
Installation failed: Command failed (1)
"D:/R/R-35~1.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore  \
  --quiet CMD INSTALL  \
  "C:/Temp/RtmpeE3VDN/devtools22dc79ce1d1/thomasp85-gganimate-ef2e717"  \
  --library="D:/R/R-3.5.1/library" --install-tests 

ERROR: dependency 'transformr' is not available for package 'gganimate'
* removing 'D:/R/R-3.5.1/library/gganimate'
In R CMD INSTALL
Installation failed: Command failed (1)

您能给我解决方法吗?再次非常感谢!

2 个答案:

答案 0 :(得分:0)

我遇到了同样的问题,我重新安装了tranformR,Rtools,并将 C:\ Rtools \ bin C:\ Rtools \ mingw_64 \ bin 添加到环境路径中。重新启动R,它正在工作。 (注意:-确保Rtools安装在C:中)

答案 1 :(得分:0)

感谢罗兰的建议。因为我的英语不好,我听不懂他的评论。根据他的建议,我检查了transformR的进口包装笼。根据错误消息,如:“未找到DLL'sf':可能未为此架构安装?”我首先检查了sf软件包。它无法打开。所以我确信真正的问题在这里。我删除了该软件包并成功重新安装,然后成功重新安装了transformR。然后成功重新安装gganimate软件包。所有问题都解决了。现在我仍然不明白“作为二进制”一词的含义。尽管它并不重要。再次感谢罗兰。