yihui / animation

A gallery of animations in statistics and utilities to create animations
https://yihui.org/animation/
206 stars 60 forks source link

Installation fails Error: package or namespace load failed for 'animation' #100

Open jsierles opened 7 years ago

jsierles commented 7 years ago
 .onLoad failed in loadNamespace() for 'animation', details:
  call: system(paste(which, shQuote(names[i])), intern = TRUE, ignore.stderr = TRUE)
  error: error in running command

I'm assuming it's due to missing system packages, however I have ffmpeg and imagemagick installed. Which packages actually need to be installed?

yulijia commented 7 years ago

I am not sure which command is used to install animation on your R software. But I installed the package from CRAN and Github, it works for me.

Please close your R GUI (or Rstudio), and re-open it again.

Then try

install.packages('animation')
jsierles commented 7 years ago

I worked it out - you need to have both ImageMagick AND ffpeg installed to get this package working. I'm installing it on Linux, not within RStudio.

Maybe it should be mentioned more clearly in the package description that you need these packages. In my case, I only wanted Imagemagick support for GIF.

yulijia commented 7 years ago

I just install the package in two server (Fedora 25, CentOS Linux release 7) without imagemagick and FFmpeg. I should confirm that, when we install this package, we don't need any pre-installed software (imagemagick or FFmpeg).

I am sorry that I cannot figure out what happened in your Linux system.