yonicd / slickR

slick carousel htmlwidget for R
https://yonicd.github.io/slickR/
Other
159 stars 14 forks source link

Blue question marks in Viewer window #5

Closed marco-vene closed 7 years ago

marco-vene commented 7 years ago

Hi,

Thanks for the package. I tried to reproduce the code on RStudio, but when I run: slickR(obj = teamImg,slideId = 'ex1',height = 100,width='100%')

I only see in the Viewer blue question marks image

The slide show seems to work, but images are not displayed, even though the urls in teamImg are correct.

Do you know what could be the issue? I am running R-3.3.3 and RStudio Version 1.0.136 Thanks,

Best,

Marco

yonicd commented 7 years ago

Can you please paste in a reply sessionInfo() and teamImg[1]

marco-vene commented 7 years ago

teamImg[1] [1] "https://i.cdn.turner.com/nba/nba/.element/img/4.0/global/logos/512x512/bg.white/svg/ATL.svg"

sessionInfo() R version 3.3.3 (2017-03-06) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601) Service Pack 1

locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

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

other attached packages: [1] slickR_0.1.0 htmlwidgets_0.8 dplyr_0.5.0.9001 reshape2_1.4.2 rvest_0.3.2
[6] xml2_1.1.1 ggplot2_2.2.1 lattice_0.20-34 svglite_1.2.0 rsvg_1.1
[11] sp_1.2-4

loaded via a namespace (and not attached): [1] Rcpp_0.12.10 magrittr_1.5 munsell_0.4.3 colorspace_1.3-2 R6_2.2.0
[6] rlang_0.0.0.9006 stringr_1.2.0 httr_1.2.1 plyr_1.8.4 tools_3.3.3
[11] grid_3.3.3 gtable_0.2.0 selectr_0.3-1 htmltools_0.3.5 yaml_2.1.14
[16] digest_0.6.12 lazyeval_0.2.0 assertthat_0.1 tibble_1.3.0 base64enc_0.1-3 [21] curl_2.4 glue_0.0.0.9000 stringi_1.1.3 gdtools_0.1.4 scales_0.4.1
[26] XML_3.98-1.5 jsonlite_1.3

Thanks

yonicd commented 7 years ago

It may have to do with firewall issues on your side. to see if you can load images that are on you local machine i put sample svg's in this folder. try to download them into a new subdirectory, and rerun the command (where the path to images is where you saved the svg's).

slickR(pathtoimages)
marco-vene commented 7 years ago

Hi,

your mention of the firewall made me think of substituting https with http in the images URL. Now it works fine.

Thanks for the help I appreciate it, I close the issue.

Best,

Marco