datalorax / slidex

Convert PowerPoint Slides to xaringan (remark.js) Slides
Other
290 stars 39 forks source link

Result 1 is not a length 1 atomic vector #19

Open Btibert3 opened 6 years ago

Btibert3 commented 6 years ago

I am starting to get into building slide decks in RMD, and came across this package in the wiki for xaringan.

Below is the error that I am seeing:

Error in convert_pptx(path = "test-ppt-slidex2.pptx", author = "Brock Tibert") : 
  Result 1 is not a length 1 atomic vector

I see #16, and this is the original build process I started with (built in Google Slides -> PPT), but the file above, was opened in PPT locally and saved with a different name. I was hoping that would fix it.

My system info:

> sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: OS X El Capitan 10.11.6

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] slidex_0.0.0.9000

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.0       tidyr_0.8.2      crayon_1.3.4     dplyr_0.7.8      assertthat_0.2.0 R6_2.3.0         magrittr_1.5    
 [8] pillar_1.3.0     rlang_0.3.0.1    rstudioapi_0.8   bindrcpp_0.2.2   xml2_1.2.0       tools_3.5.1      glue_1.3.0      
[15] purrr_0.2.5      yaml_2.2.0       compiler_3.5.1   pkgconfig_2.0.2  tidyselect_0.2.5 bindr_0.1.1      tibble_1.4.2   
datalorax commented 6 years ago

Thanks! My guess is you’ll need to use the dev branch but it is rather unstable for other reasons. I have had no time to develop this in recent months, unfortunately. But I will try to look into this soon.

Btibert3 commented 6 years ago

Thanks, I will take a look. This is a fantastic idea for a package.

PatriLoto commented 5 years ago

I tried to convert PowerPoint slides to xaringan slides but I got the same error as Btibert3: "Result 1 is not a length 1 atomic vector " :/.

datalorax commented 5 years ago

Thanks! Can you attach the powerpoint you were having issues with? I have not had time to work on this package for quite some time but hoping to resume at least support-level development soon. I might be able to have time to address this if you can share the slides that are causing the issue.

PatriLoto commented 5 years ago

This is one of the powerpoint file that I've tried to convert: TalkaboutR.pptx. Also I tried with others pptx but it didn't work neither. Thank you so much for your time!

datalorax commented 5 years ago

So I'm not closing this issue because it still needs some work but it should basically work if you install from the newbullets branch:

remotes::install_github("datalorax/slidex@newbullets")

(but please let me know if it still doesn't render)

PatriLoto commented 5 years ago

Yesss, it work . I've just convert my pptx file but only one thing didn't work, the Powerpoint images are not coming across into the img folder. Anyway, I read the issue #15 and I'm resolving to copy the images from powerpoint file to the img sub-folder. Thank you very much again :)

datalorax commented 5 years ago

Great! Glad at least that part was resolved. Good luck!