I am trying to run germination in mac R studio, but I see getting the following error message (please see the details below). I look forward to your advise. Regards, J
> library(ggplot2)
> library(gganimate)
> ggplot(care, aes(lifeexp,Expected, size =Total, colour = Country)) +
+ geom_point(alpha = 0.7, show.legend = FALSE) +
+ scale_size(range = c(2, 12)) +
+ scale_x_log10() +
+ # Here comes the gganimate specific bits
+ labs(title = 'Year: {frame_time}', x = 'GDP per capita', y = 'life expectancy') +
+ transition_time (Year) +
+ ease_aes('linear')
sh: ffmpeg: command not found
Error in file(what, "rb") : cannot open the connection
In addition: Warning messages:
1: In system2(ffmpeg, c(paste0("-i ", file_glob), "-y", "-loglevel quiet", :
error in running command
2: In file(what, "rb") :
cannot open file '/var/folders/f7/h414b25n5g3cbd1zb6qd13lw0000gn/T//Rtmphrb0VD/file24f81b225152.mp4': No such file or directory
It may or may not be that your problem is not with gganimate
Can you please create a reprex?
Also, any chance you can reformat the opening post to designate the beginning and the end of the code chunk?
Thank you!
care dataset might be open in your session but reprex renders examples in a new clean session so if care comes packed with some package you also have to loaddit explicitly.