Code Monkey home page Code Monkey logo

Comments (5)

matthiasgomolka avatar matthiasgomolka commented on July 19, 2024 1

Sorry for the deleay!

Updating to 1.4 did not help.

Unfortunately, I'm not an expert of nw.js at all, so I can't direct you into any direction regarding nw.js.

I'll create a GitHub Repo in the next days for you to reproduce the problem.

from distill.

cderv avatar cderv commented on July 19, 2024

Hi !

Which version of distill are you using ?

I think I may have solve this old issue just this week (#91) and the version release yesterday on CRAN may fix your issue. It is 1.4.

But maybe the fix is for the issue #91 is not enough for your usage.

Can you try it ?

from distill.

matthiasgomolka avatar matthiasgomolka commented on July 19, 2024

I was indeed still on version 1.3. However, updating to 1.4 did not help.

Sorry for not providing the seesionInfo() right away:

> sessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)

Matrix products: default

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

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

loaded via a namespace (and not attached):
 [1] rstudioapi_0.13 knitr_1.38      xml2_1.3.3      magrittr_2.0.3  downlit_0.4.0   R6_2.5.1       
 [7] rlang_1.0.2     fastmap_1.1.0   fansi_1.0.3     stringr_1.4.0   tools_4.0.2     xfun_0.30      
[13] utf8_1.2.2      cli_3.2.0       jquerylib_0.1.4 ellipsis_0.3.2  htmltools_0.5.2 yaml_2.3.5     
[19] digest_0.6.29   lifecycle_1.0.1 tibble_3.1.6    crayon_1.5.1    bookdown_0.26   sass_0.4.1     
[25] vctrs_0.4.1     fs_1.5.2        distill_1.4     glue_1.6.2      memoise_2.0.1   cachem_1.0.6   
[31] evaluate_0.15   rmarkdown_2.13  stringi_1.7.6   pillar_1.7.0    compiler_4.0.2  bslib_0.3.1    
[37] jsonlite_1.8.0  renv_0.15.4     pkgconfig_2.0.3

from distill.

cderv avatar cderv commented on July 19, 2024

The html files created from the Rmd files contain a small section with the comment // get rid of index.html references in header:

Can you check that this section in your HTML rendered using 1.4 has changed ?
Specifically the regex should be difference that just index.html

This section replaces all links to index.html in the top bar by ./, when I open the website as a local nw.js app. This breaks those links and the respective page cannot be found.

Is there a specific behavior of nwjs.io that could help me understand what to change ?

I think we currently need this trick in JS for some purpose with the RStudio IDE. I'll try to find the original reason.

If possible, can you help me build a reproductible example with nwjs.io and using for example the demo distill template ? we could use a specific github repo as example for that. That would help me reproduce on my side, and do some test.

Thanks !

from distill.

matthiasgomolka avatar matthiasgomolka commented on July 19, 2024

Here is the repo: https://github.com/matthiasgomolka/distill_462

Minimal instructions are available in https://github.com/matthiasgomolka/distill_462/blob/main/index.Rmd.

You can reproduce the problem when you start the app (as described in index.Rmd) und then click on the top left Button which should lead to index.html.

Hope this helps.

from distill.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.