Hello, try to run a script where I use the libraries animation and ggplot2. But I get the following notice:
I cannot find ImageMagick with convert = "convert"
[1] FALSE
Warning messages:
1: In system(cmd, intern = intern, wait = wait | intern, show.output.on.console = wait, :
running command 'C:\WINDOWS\system32\cmd.exe /c convert --version' had status 4
2: In find_magic() : ImageMagick not installed yet!
3: In im.convert(img.files, output = path.expand(movie.name), convert = convert, :
Please install ImageMagick first or put its bin path into the system PATH variable
when trying to install the library, the system informs me the following:
install.packages("ImageMagick", dependencies = TRUE, repos = "http://cran.us.r-project.org")
Warning in install.packages :
package ‘ImageMagick’ is not available (for R version 3.5.0)
You should install the windows binary for the package to work.
About animation of ggplot2 graphs, there are also a combination of {gganimate} and {magick} that could do the trick. {magick} use c++ imagemagick so with windows binary there is no system dependency.
An example from this post: https://ropensci.org/blog/2017/08/15/magick-10/