-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expand nms4r vignettes #69
Comments
Audience:
Existing Vignettes: Perhaps expand on vignettes similar to breakdown here:
And then highlight how we populate static and dynamic content with captions, so possibly pulling from: Diagrams of what?
|
We need a bigger picture Vignette to orient the technical audience around the necessary files (html, svg, csv) to construct an interactive infographic website, and where these files should be located and reference each other. See README.md in https://github.com/marinebon/info-demo. > # brew install tree
> cd ~/github/info-demo
> tree -L 2
.
├── README.md
├── _site.yml
├── about.Rmd
├── docs
│ ├── README.html
│ ├── about.html
│ ├── index.html
│ ├── libs
│ ├── modals
│ ├── site_libs
│ └── svg
├── index.Rmd
├── info-demo.Rproj
├── libs
│ ├── bootstrap-toggle.min.css
│ ├── bootstrap-toggle.min.js
│ ├── d3.v5.min.js
│ ├── infographiq.js
│ └── styles.css
├── modals
│ ├── test-video.Rmd
│ └── test-video.html
└── svg
├── cinms_pelagic.svg
└── svg_links.csv |
Hey @bbest & @mspector13 - I took a first pass at a bunch of the vignettes, which you can find in the nms4r package here. I created vignettes for each of the function groups listed on the Reference page. It is a pretty crude first pass, so there is a lot of room for improvement. But I figured that something was better than nothing - editing is easier than writing from scratch, I find. I think the vignette for "Sanctuary Utilities" (which currently is just a placeholder) should be dumped, as there is only one function in this function group (meaning I don't what there is to say further than what is in the individual function description). I also created an overview vignette, which is currently a placeholder. I'll get a bad first pass down on the overview later on today. |
Hey @bbest - I had a thought. Given the complexity of creating a new site from scratch, I thought it might be good if nms4r could itself create a new template site. I created a new function to do that - initial_build() - which creates a template site in a path selected by the user. The function just copies over the contents of the template directory that is sitting in the R package (in the inst folder). I created this template as a very simple version of a new site. I think it would work well to walk through this template site in a vignette. The only trouble is that this template site doesn't quite work. The issue is that, in the rendered html (like this file), the clickable infographic images don't display in a browser (though they do show up fine if the html is viewed within R studio). The html files in the modal directory seem to be fine. Anyway, what do you think? |
Looks good @superjai. Reminds me of
|
TODO:
Expand for reuse in different environments:
|
Hey @bbest & @mspector13 - I have gone ahead and greatly updated the vignette for documenting how to create a new nms4r site. What do you think? Feel free to edit as you wish. It is in the nms4r package so you should do a pull on that. Here is the direct link to the specific vignette. The file to edit is Overview.Rmd in the vignettes folder. |
Looking good Jai! Thanks so much. Next, we’ll want to move this to
https://github.com/marinebon/infographiq
On Fri, Feb 5, 2021 at 4:13 PM Jai Ranganathan ***@***.***> wrote:
Hey @bbest <https://github.com/bbest> & @mspector13
<https://github.com/mspector13> - I have gone ahead and greatly updated
the vignette for documenting how to create a new nms4r site. What do you
think? Feel free to edit as you wish. It is in the nms4r package so you
should do a pull on that. Here is the direct link to the specific vignette
<https://marinebon.org/nms4r/articles/Overview.html>. The file to edit is
Overview.Rmd in the vignettes folder.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#69 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAVUWCLXQSPCIUWQKZYJFA3S5SCQZANCNFSM4UN2HCHQ>
.
--
Ben Best, PhD
Environmental Data Scientist
EcoQuants.com <http://ecoquants.com/>
calendar: LA (PDT)
<https://calendar.google.com/calendar/[email protected]&ctz=America/Los_Angeles>
, NY (EDT)
<https://calendar.google.com/calendar/[email protected]&ctz=America/New_York>
+1.805.705.9770 <(805)%20705-9770>
|
Hey @bbest. Sounds good. Let's chat about it though during our next meetup - I am not exactly sure where infographiq ends and nms4r begins. |
See #61
The text was updated successfully, but these errors were encountered: