Windows 7 に gganimate をインストールしようとしています。すでに ImageMagick へのパスを追加しています。以下は、インストールに使用したコードです。
library(httr)
set_config(config(ssl_verifypeer = 0L))
library(devtools)
library(RCurl)
devtools::install_github("RcppCore/Rcpp")
devtools::install_github("dgrtwo/gganimate")
install.packages("gapminder")
library(gapminder)
library(ggplot2)
theme_set(theme_bw())
p <- ggplot(gapminder, aes(gdpPercap, lifeExp, size = pop, color =continent, frame = year)) +
geom_point() +
scale_x_log10()
library(gganimate)
install.packages("cowplot")
install.packages("animation")
library(animation)
ani.options(convert = shQuote('C:/Program Files/ImageMagick-7.0.3- Q16/magick.exe'))
gganimate(p)
しかし、最後の行 gganimate(p) を実行すると、次のエラーが表示されます: エラー
エラーは次のとおりです。
実行: ""\"C:/Program Files/ImageMagick-7.0.3-Q16/magick.exe\"" -loop 0 -dispose none -delay 0 plot1.png -dispose previous -delay 100 plot2.png plot3.pngファイル名、ディレクトリ名、またはボリューム ラベルの構文が正しくありません。変換でエラーが発生しました... ?im.convert の注意事項を参照してください ファイル (ファイル、"rb") のエラー: 接続を開くことができません さらに: 警告メッセージ: 1: コマンド 'C:\Windows\system32\cmd を実行しています.exe /c "\"C:/Program Files/ImageMagick-7.0.3-Q16/magick.exe\"" --version' had status 1 2: コマンド 'C:\Windows\system32\cmd.exe / を実行中c ""\"C: