Тёмный

gganimate mac - Warning: file_renderer failed to copy frames to the destination directory SOLVED 

CradleToGraveR
Подписаться 5 тыс.
Просмотров 4,9 тыс.
50% 1

#CradleToGraveR now a Discord! Come say hello: / discord
Warning message: file_renderer failed to copy frames to the destination directory solved using a Mac. Using gganimate, gifski and png packages along with ggplo2, animate your plots. However, there is an issue.
I was trying to learn through this site:
www.datanovia....
However, I could not get this code from the site to execute:
library(gapminder)
library(ggplot2)
library(gganimate)
data(gapminder)
p = ggplot(
gapminder,
aes(x = gdpPercap, y=lifeExp, size = pop, colour = country)
) +
geom_point(show.legend = FALSE, alpha = 0.7) +
scale_color_viridis_d() +
scale_size(range = c(2, 12)) +
scale_x_log10() +
labs(x = "GDP per capita", y = "Life expectancy")
p + transition_time(year)
I used "=" sign instead of angled bracket because RU-vid does not allow them. Should still work though.
I ran into a snag though and needed to solve it. Here is how.
👇SUBSCRIBE & HIT THE 👍 BUTTON 👇
R Channel: bit.ly/38yfFP9
How I Create Videos: bit.ly/sub_to_chan
➔ TubeBuddy: bit.ly/t_buddy
➔ Blue Yeti Mic: amzn.to/2IheZTG
➔ 2 Months SkillShare Free ➔ www.skillshare...
Do you have more to add? Let me know how you liked the video or if I need anything corrected in the comments below.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TECH GEAR I USE DAILY
➔ MacBook Pro: amzn.to/2XxeBsG
➔ Blue Yeti Mic: amzn.to/2IheZTG
➔ Swissgear Backpack: • ✅SwissGear Travel Scan...
➔ Canon EOS 90D Camera: amzn.to/2u0o52K
➔ Apple Magic Trackpad 2: amzn.to/31XDugG
➔ mTuber for Title Effects : motionvfx.sjv....
➔ mArrows for animated arrows: motionvfx.sjv....
➔ Microphone - amzn.to/2LYfJkr
➔ Backpack - amzn.to/2Ep4uez
➔ Green Screen - amzn.to/2JVzMgP
➔ Tripod Neewer: amzn.to/2uF275X
➔ Tripod (cheap) - amzn.to/2Eo2wv4
HOMEPAGE - www.markgingra...
REVIEWS/BLOG - www.markgingra....
OTHER COURSES I CURRENTLY TEACH
➔ C++ Course: bit.ly/cpp_course
➔ Supply Chain Management: bit.ly/scm_course
Let's chat
/ markgingrass
#CommissionsEarned
“As an Amazon Associate I earn from qualifying purchases.”
I've started a blog about IT and software development projects along with some sound career advice. Check it out:
www.devgin.com/

Опубликовано:

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 70   
@johan5315
@johan5315 4 года назад
You're the man! The short version in Windows would be: Right click the working directory in file explorer and remove read only.
@CradleToGraveR
@CradleToGraveR 4 года назад
Thanks for this. Many people are asking about Windows solution. I'll pin this comment.
@mukherjeesrijit
@mukherjeesrijit 4 года назад
@Zheng Li It works. You have to go to R Studio from Windows and run as administrator for it to work from scratch.
@delabungsu6817
@delabungsu6817 4 года назад
Thanks! It works
@hmichaelpower
@hmichaelpower 4 года назад
Thank you very much for this - I got it to work by changing file permissions through the menu, and then restarting R/Rstudio. As Johan says, You're the man!
@CradleToGraveR
@CradleToGraveR 4 года назад
I'm glad this is still a valid solution. I am surprised their isn't more documentation on this issue.
@samgasell874
@samgasell874 4 года назад
Thank you so much! I thought this didn't work for me, but once I restarted RStudio, everything worked as planned!
@CradleToGraveR
@CradleToGraveR 4 года назад
It's caused many people hours if frustration. Glad this fixed it.
@etienneseitz1261
@etienneseitz1261 2 года назад
Thank you so much. Your solution worked for me on MacBook Pro (M1) / 2021.
@CradleToGraveR
@CradleToGraveR 2 года назад
I'm jealous of your M1. Surprised this is still an issue.
@gabrielstocker4606
@gabrielstocker4606 3 года назад
THANK YOU SO MUCH FOR THIS! It worked for me as well. Running R Studio on Manjaro distro Needed an additional simple step: restart R Studio. Finally solved thanks to you!
@sumondatta7976
@sumondatta7976 2 года назад
Thanks man. It worked. Just FYI for windows fanboys: I have been a windows user for the last ~20 years until I switched to MacOS 1 month ago. I can say that the GIF creating process is 200 times faster on MacOS than Windows. (Note: Most of the stuffs are much faster)
@patrickmuvunyi55
@patrickmuvunyi55 3 года назад
Thanks so much! I've just copied and pasted your code in my R and it worked.
@CradleToGraveR
@CradleToGraveR 3 года назад
Always nice to know it still works. A lot of this content gets dated.
@juyoungkang9081
@juyoungkang9081 3 года назад
Thank you so much. I've been troubled with this issue, now it works! Thanks a lot :)
@CradleToGraveR
@CradleToGraveR 3 года назад
Glad it helped! I haven't used gganimate in a while and I am glad this tip is still working for people.
@mariamercedesmartelapaix3890
@mariamercedesmartelapaix3890 4 года назад
You deserve an award for this. Thanks, man.
@CradleToGraveR
@CradleToGraveR 4 года назад
Glad it helped!
@cookie.lover007
@cookie.lover007 3 года назад
Jeez, thank you so much! This was so frustrating.
@CradleToGraveR
@CradleToGraveR 3 года назад
Glad the hack is still working lol.
@diegotorresflores3089
@diegotorresflores3089 4 года назад
Thanks a lot, dude!! I was having the same issue.
@MarkGingrass
@MarkGingrass 4 года назад
No problem. Glad it fixed the issue. I"ve been seeing so many animated plots lately. Especially with the COVID-19 data.
@drazraut
@drazraut 2 года назад
Thank you so much. It really helped me.
@ceresliu5949
@ceresliu5949 3 года назад
Thanks a lot! Awesome
@CradleToGraveR
@CradleToGraveR 3 года назад
Did you get it to work?
@TheRajmah
@TheRajmah 4 года назад
thanks for the explanation dude. this helped me to solve the same issue on WIN 10 too.
@CradleToGraveR
@CradleToGraveR 4 года назад
Others on this comment thread are having Windows issues too. Thanks.
@luisgiordano3724
@luisgiordano3724 2 года назад
ohh master!! thanks very much!!!
@casualcomputer6544
@casualcomputer6544 4 года назад
Another Windows solution that worked for me: 1) search for "R Studio" by clicking Windows' Key, 2) right-click R studio's icon and select "Run as administrator", 3) re-run the codes again
@CradleToGraveR
@CradleToGraveR 4 года назад
I've heard this works. Glad you were able to test it out. Have you created any cool animations?
@hasanbulut5525
@hasanbulut5525 10 месяцев назад
Thank you so much. It helps me.
@CradleToGraveR
@CradleToGraveR 10 месяцев назад
Glad it helped!
@marianathaliaramirez9295
@marianathaliaramirez9295 3 года назад
Thanks!!
@CradleToGraveR
@CradleToGraveR 3 года назад
Glad it helped. Did you create something cool?
@zetjedataopdekaart
@zetjedataopdekaart 4 года назад
Thnx, this was helpful!
@haoxiangqi8916
@haoxiangqi8916 4 года назад
It works for me! Thanks!
@CradleToGraveR
@CradleToGraveR 4 года назад
On a Mac or Windows?
@Porusharda
@Porusharda 3 года назад
Thanks man...!
@CradleToGraveR
@CradleToGraveR 3 года назад
You're welcome! Glad it's still useful.
@avirupdas1065
@avirupdas1065 3 года назад
Thank you so much man! ❤️🥺
@nextartutorials2055
@nextartutorials2055 Год назад
Not Able to fix it, done all upto png install but same error,, Oh Hang On...........restarted R ..............Started!!! Thanks!!!!
@CradleToGraveR
@CradleToGraveR Год назад
Awesome, glad it worked.
@howards8155
@howards8155 4 года назад
Thanks so much for sharing this. I'm on Mac and I also ran into the same issue. I have the directory permission to read-write-and-execute and have loaded the required packages (gganimate, gifski, and png), but the problem still persists. Are you sure it's not something else that you've done that fixed the issue?
@CradleToGraveR
@CradleToGraveR 4 года назад
Did you use the terminal to change permission or the properties window?
@howards8155
@howards8155 4 года назад
@@CradleToGraveR I used the terminal as shown on your video: chmod 777.
@CradleToGraveR
@CradleToGraveR 4 года назад
@@howards8155 , let me know if you solve this issue. I will think about anything I might have missed. Interesting... seems like this problem should be solved.
@romanvasiura6705
@romanvasiura6705 Год назад
Thank you for this video and nice resource (datanovia). 😃
@CradleToGraveR
@CradleToGraveR Год назад
I wonder if this issue is still relevant? I haven't messed with it since this video.
@romanvasiura6705
@romanvasiura6705 Год назад
@@CradleToGraveR I tried to run it ... but I had an error... I did a note for to do list (to solve this issue)
@hamzasiddiqui10
@hamzasiddiqui10 4 года назад
THANKYOUUUUUUU
@CradleToGraveR
@CradleToGraveR 4 года назад
Juat glad it still works. I haven't messed with it in a while.
@jamescutler428
@jamescutler428 4 года назад
Actually, I thought this was going to solve it for me (I also have a mac), but it didn't. I did everything you showed--used the terminal to change permissions with the chmod 777 command, installed and loaded gifski and png, and it still didn't work. I got the same error! "failed to copy frames to the destination directory". Any guesses as to what is still going wrong for me???
@jamescutler428
@jamescutler428 4 года назад
GOOD NEWS!!!!! All I had to do, after trying everything you showed, was restart RStudio. Then it worked! I literally did everything you showed, minus restarting R, and I still got the error. Then I restarted R, and it worked. I hope that helps the other people still getting the error.
@CradleToGraveR
@CradleToGraveR 4 года назад
That's good to know! Glad you figured it out. I was just about to mess with to see if I could help. Ha.
@christopherdunn4389
@christopherdunn4389 4 года назад
@@jamescutler428 Same thing happened to me... thanks for posting your update!
@martinravel00
@martinravel00 3 года назад
@@jamescutler428 thank you very much! that´s what was missing!
@annecarolinegloryp4267
@annecarolinegloryp4267 4 года назад
How to get permissions in windows .. I tried changing in properties .. but still it shows me the same warning message .. can you please help me solve this..
@CradleToGraveR
@CradleToGraveR 4 года назад
I wish i knew. I think someone had a Windows issue below in comments and they fixed it. I'll take a look soon and see.
@annecarolinegloryp4267
@annecarolinegloryp4267 4 года назад
@@CradleToGraveR Thank you .. I am doing a project work .. Waiting For your reply ...
@annecarolinegloryp4267
@annecarolinegloryp4267 4 года назад
@Valentina Andrade No..
@philipp1717
@philipp1717 4 года назад
​@@annecarolinegloryp4267 hey, I also had problems with that that didnt change after trying most of the stuff that worked for others. in the end I installed the additional package "gifski", created my ggplot2 plot as always and then used animate(Plotname, renderer = gifski_renderer() ) and it worked. maybe try that
@philipp1717
@philipp1717 4 года назад
and for some reason its now working even without the gifski command.
@abhishekdas2640
@abhishekdas2640 4 года назад
Please also bring a video of the same problem for windows.
@CradleToGraveR
@CradleToGraveR 4 года назад
Next time I try gganimate I will. I switched to mainly using Windows so I'm sure it will come up.
@abhishekdas2640
@abhishekdas2640 4 года назад
@@CradleToGraveR thank you very much 😀
@tuna8113
@tuna8113 4 года назад
Hello, thanks for video but do you know how can i come through the same problem on Windows10. İf possible, can you explain?
@CradleToGraveR
@CradleToGraveR 4 года назад
I’ll try it on another computer with Windows and let you know.
@TheRajmah
@TheRajmah 4 года назад
for me it worked in windows too. U need not have to go to CMD and change permissions. i changed it in properties of the folder and it worked. don't forget to restart R .
@CradleToGraveR
@CradleToGraveR 4 года назад
Can you right click on the folder and change properties there? Or do you need to go to the command line?
@TheRajmah
@TheRajmah 4 года назад
@@CradleToGraveR right click and changing in properties is sufficient
Далее
R Studio Shortcut Tips
6:47
Просмотров 4,6 тыс.
Windows Task Scheduler R Script Automate
12:40
Просмотров 10 тыс.
First flexdashboard using R
10:12
Просмотров 22 тыс.
flexdashboard 02 - valueBox, Gauge, DT
26:01
Просмотров 14 тыс.