Comments (5)
Solution, unfortunately, found. On Macs/Unix-based systems, you can't use the double backslash to refer to file references ("\"). You have to use forward slashes ("/"). So the solution for the above piece of code would be:
r2d3(data = data_to_json(dat_sankey), script = "js_scripts/all_tabs.js",
d3_version = 5,
dependencies = c("js_scripts/sankey/d3-sankey.js",
"js_scripts/sankey/d3-sankey.min.js"),
options = list("all_sig"=all_sig,
"sig_color"=unname(sig_color),
"no_sig_color"=no_sig_color,
"font_size" = font_size,
"which_camp" = "ont_map",
textcol_bg = textcol_bg,
togg_border = togg_border
))
Closing this issue (though hopefully some woefully unknowing windows user like me finds this helpful!).
from r2d3.
Use forward slashes are valid on both Windows & Posix systems so is generally how all path references are composed in R.
from r2d3.
If you're on windows, the above double backslashing reference would work (this is easier to add one backslash when copying references from windows). So this isn't well known for people like me, who work almost exclusively in a windows environment. But good to know for me for the future!
from r2d3.
from r2d3.
Wow, great to know about the "file.path" command! Thank you for the tip!
from r2d3.
Related Issues (20)
- forcegraph.js using container = "canvas" not working
- Data passed to multiple charts HOT 1
- Render r2d3 output in rmarkdown document with `rmarkdown::knitr()` function
- Request: Add support for version 7 of D3
- No guide on importing SVG
- is r2d3 abandoned?
- Error adding multiple dependencies HOT 1
- Debugging: Rstudio D3 Preview with Full R Code HOT 1
- Why does the image produced from r2d3 is static?
- Implementing D3 6.0 HOT 4
- Question: r2d3 still maintained? HOT 2
- Inproper data join after input change HOT 1
- Width and Height parameters don't seem to work
- Quick questions about width and height HOT 1
- Move `master` branch to `main` HOT 1
- D3 preview in RStudio does not render imported SVG
- Cleanup the README formatting
- "publishing.html" documentation article has mis-rendered R code blocks
- Brush selection lost after page resize
- issues when rendering an r2d3-based package's plots in shiny
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from r2d3.