0

gganiminateライブラリを使用しようとしていますが、gganimate::gganimate(myplot) を呼び出すと問題が発生します。この問題は、依存ライブラリのmagickにあるようです。

関数を呼び出すと、次の警告が表示されます。

    gganimate::gganimate(p)

1: running command 'C:\WINDOWS\system32\cmd.exe /c convert --version' had status 4
2: In find_magic() : ImageMagick not installed yet!
 In im.convert(img.files, output = path.expand(movie.name),  ... :
  Please install ImageMagick first or put its bin path into the system PATH variable

だから私は魔法を別々にインストールしようとします。私はクライアントのマシンにいるので、github からパッケージをインストールするには、ファイアウォールを通過するための情報を提供する必要があります。同じ手法を使用して、このマシンで github から他のライブラリを正常にインストールしました。しかし、magick は他の問題にぶつかっているようです。以下は私のコードとエラーです:

devtools::install_github("ropensci/magick",httr::set_config(httr::use_proxy("xx.xxx.xx.xx",xxxx)))

Downloading GitHub repo ropensci/magick@master
from URL https://api.github.com/repos/ropensci/magick/zipball/master
Installing magick
"C:/PROGRA~1/R/R-34~1.3/bin/x64/R"  \
  --no-site-file --no-environ --no-save  \
  --no-restore --quiet CMD INSTALL  \
  "C:/Users/r631265/AppData/Local/Temp/1/RtmpS0efnQ/devtools18fc5f2414b/ropensci-magick-7925af3"  \
  --library="C:/Users/r631265/Documents/R/win-library/3.4"  \
  --install-tests 

* installing *source* package 'magick' ...
** libs

*** arch - i386
rm -f RcppExports.o animation.o attributes.o base.o color.o composite.o config.o convolve.o device.o edit.o fonts.o options.o resize.o transformations.o magick.dll
Linking to imagemagagick-6.9.9
"C:/PROGRA~1/R/R-34~1.3/bin/i386/Rscript.exe" "../tools/winlibs.R" 6.9.9
Error in curl::curl_download(sprintf("https://github.com/rwinlib/imagemagick%s/archive/v%s.zip",  : 
  schannel: failed to receive handshake, SSL/TLS connection failed
Calls: <Anonymous> -> .Call
Execution halted
make: *** [winlibs] Error 1
Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-34~1.3/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-34~1.3/share/make/winshlib.mk" CXX='$(CXX11) $(CXX11STD)' CXXFLAGS='$(CXX11FLAGS)' CXXPICFLAGS='$(CXX11PICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX11LDFLAGS)' SHLIB_LD='$(SHLIB_CXX11LD)' SHLIB="magick.dll" OBJECTS="RcppExports.o animation.o attributes.o base.o color.o composite.o config.o convolve.o device.o edit.o fonts.o options.o resize.o transformations.o"' had status 2
ERROR: compilation failed for package 'magick'
* removing 'C:/Users/r631265/Documents/R/win-library/3.4/magick'
In R CMD INSTALL
Installation failed: Command failed (1)

おそらく、ファイアウォールの詳細が次の場所に渡されていないと思います。curl::curl_download(sprintf("https://github.com/rwinlib/imagemagick%s/archive/v%s.zip",...)

ネットワーク セキュリティは私にとってブラック ボックスのようなものなので、他に何を試せばよいのか、問題を正しく診断できているのかわかりません。どんな助けでも大歓迎です!

4

0 に答える 0