trafficonese / widgetframe

Embed htmlwidgets in Responsive iframe.
https://bhaskarvk.github.io/widgetframe/
Other
69 stars 11 forks source link

blogdown 404 error - double-slash between "figure-html" and "widgets" #18

Open houstonhaynes opened 6 years ago

houstonhaynes commented 6 years ago

My generated URL looks like this...

http://www.h3tech.io/post/conversion-win-loss_files/figure-html//widgets/widget_unnamed-chunk-4.html?initialWidth=355&childId=htmlwidget-1&parentTitle=Improving%20Conversion%20Win-Loss&parentUrl=http%3A%2F%2Fwww.h3tech.io%2Fpost%2Fconversion-win-loss

where removing one slash after figure-html fixes the issue

R version 3.4.1 (2017-06-30) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

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

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

other attached packages: [1] widgetframe_0.3.1 htmlwidgets_0.9 jsonlite_1.5 dplyr_0.7.2 purrr_0.2.3
[6] readr_1.1.1 tidyr_0.7.0 tibble_1.3.4 ggplot2_2.2.1 tidyverse_1.1.1
[11] highcharter_0.5.0 RevoUtilsMath_10.0.0 RevoUtils_10.0.5 RevoMods_11.0.0 MicrosoftML_1.5.0
[16] mrsdeploy_1.1.2 RevoScaleR_9.2.1 lattice_0.20-35 rpart_4.1-11

bhaskarvk commented 6 years ago

I'll be resuming development in Dec and will tackle this in that round. Thanks!

afflorezr commented 5 years ago

Hi everyone, I have the same problem. In the localhost it's run ok, but when I put it in aws-amazon I get this error:

403 Forbidden Code: Accessdenied Message: Access denied RequestId: HostId:

My generated URL looks like this...

https://blog.analystats.com/post/RFM.es_files/figure-html//widgets/widget_unnamed-chunk-5.html?initialWidth=730&childId=htmlwidget-1&parentTitle=Segmentaci%C3%B3n%20de%20clientes%3A%20un%20an%C3%A1lisis%20RFM%20en%20Knime%20%7C&parentUrl=https%3A%2F%2Fblog.analystats.com%2F2019%2F03%2F17%2Fsegmentaci%25C3%25B3n-de-clientes-un-an%25C3%25A1lisis-rfm-en-knime%2F

where removing one slash after figure-html fixes the issue

R version 3.4.3 (2017-11-30) Platform: x86_64-apple-darwin15.6.0 (64-bit) Running under: macOS 10.14.3

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.4/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

loaded via a namespace (and not attached): [1] compiler_3.4.3 tools_3.4.3 yaml_2.2.0

Thanks.

aetiologicCanada commented 5 years ago

I started a different issue https://github.com/bhaskarvk/widgetframe/issues/21 but this same error occurs in Rmd production of flexdashboard. What I can see the double slash in the html output file, correcting that typo does not resolve the problem because the file is "Not Found" and when I go looking for: (for example) /home/rob/Rprojects/Projects/SSIHC/test1_files/figure-html/widgets/widget_chunk1.html I do not see the folder test1_files . I would welcome a suggestion. Quite prepared to hand-hack the html output for a while until this is fixed. Has the owner of widgetframe abandoned the repo?

houstonhaynes commented 5 years ago

FWIW - I have a step in my deployment process that does a find-and-replace of all instances found in HTML files in public. It basically looks for "figure-html//widgets" and replaces it with "figure-html/widgets". Before I scripted it I used VSCode's Edit >> Replace is Files.

image

I had a mind to look into this after I handled some other housekeeping in my personal site.

houstonhaynes commented 4 years ago

Has the owner of widgetframe abandoned the repo?

Just looking back on this and I think so... still doing the hack in my case, which works. But I'd love for the package itself to do the job.