rstudio4edu / rstudio4edu-book Goto Github PK
View Code? Open in Web Editor NEWOrganizing rstudio4edu project progress
Home Page: https://rstudio4edu.github.io/rstudio4edu-book/
Organizing rstudio4edu project progress
Home Page: https://rstudio4edu.github.io/rstudio4edu-book/
then link to section on licensing
To add to the preface, I think we may want to make sure folks who dive into the cookbooks can find clear links/chapters based on the following 3 "wants" (inspired by our local farmer's market :):
"I'm in a default mood" (image idea: like a bouquet of daisies/roses/carnations- something still nice but "classic")
--> this link will send them to the most basic chapter of using a default template and deploying to GH Pages
"I want to have nice things" (image idea: store front of bouquets that are our templates, pretty :)
--> this link will send them to the TBD rmd4edu
template they can just use
"I want to learn to make nice things" (image idea: field of flowers or something, thinking custom)
--> this link will send them to the (series of) chapters for making and then customizing the default site.
All image ideas may be trashed, just thinking we may want to highlight these 3 wants at the beginning of each cookbook, and call them out somewhere in our philosophy section.
After this most recent merge ce21d27, some icons are not rendering, like github and twitter share icons in the toolbar.
This is a nice model for organizing what is to come:
https://r-pkgs.org/intro.html#intro-outline
Also this blog post:
https://blog.jupyter.org/teaching-and-learning-with-jupyter-c1d965f7b93a
Also existing RStudio materials:
https://github.com/mine-cetinkaya-rundel/teach-data-sci-icots2018
https://mine-cetinkaya-rundel.github.io/teach-data-sci-icots2018/
Slide links there are wrong:
Analogies
Reference/General Flowcharts
tips
just for fun
Experiment with using flex grow and similar CSS properties to get both elements side by side, and giving extra space to the image element when possible.
disable flexbox for mobile
Some example YAMLs being shown in the bookdown cookbook, are being printed as if they were verbatim code chunks?
For example:
I found that this will happen if a code chunk is immediately preceded by an inline HTML comment <!--my comment-->
, and removing the comment fixes it. BUT, with the YAML here, I cannot figure out what's triggering this behavior
I think somewhere the img
tag is getting a CSS assigned of display: block
. This means we cannot create or show side-by-side plots like this:
```{r dodge-st, fig.show = 'hold', out.width = '50%'}
ggplot(mtcars, aes(factor(cyl), fill = factor(vs))) +
geom_bar(position = position_dodge(preserve = "total"))
ggplot(mtcars, aes(factor(cyl), fill = factor(vs))) +
geom_bar(position = position_dodge2(preserve = "total"))
```
This code works in a fresh bookdown, but in ours they plots are stacked but I was able to get them side-by-side by removing the display: block
.
@dcossyleon Any ideas where this is coming from in our CSS?
p + p { font-size: smaller; } /* Selects all paragraphs that follow another paragraph */
Hi, i'm not sure if the anchors are working correctly as they don't all seem to link to the right section. I noticed this recently in my book as well.
Anything tweakable by yaml (built-in)
Single Page:
<br>
type: inverse
) think this can be here tooMulti-page/ site:
type: inverse
) think this can be good to reinforce here from singleSingle lesson R Markdown
rmd4edu
packageAll- need instructions for using in the index
file
index
file give links to most critical parts of bookdown
chaptersSingle lesson R Markdown
R Markdown site
Distill
blogdown
sections (APH)<link rel="icon" type="image/png" href="images/favicon.png"/>
Need to include:
I usually forward people to this interactive tutorial; we'll use this one; also see reference guide
Also our website
This add-in looks useful for educators, and for students who don't know markdown: https://github.com/thinkr-open/remedy
esp to replace copy pasted emojis in cookbook for data package
@apreshill, does this ever happen to you?
I often get this error when trying to Preview Book. I get around it by making some arbitrary small change in index.Rmd
and saving, and then it renders fine, but still annoying.
> bookdown:::serve_book()
Error in render_book(files, output_format, output_dir = output_dir, preview = preview_, :
No input R Markdown files found from the current directory /Users/desireedeleon/Documents1/New R Projects/rstudio4edu-book/assets or in the rmd_files field of _bookdown.yml
>
Other times it manifests as this error:
> bookdown:::serve_book()
Error in abs_path(input) : The file 'index.Rmd' does not exist.
Calls: local ... do.call -> <Anonymous> -> setwd -> dirname -> abs_path
In addition: Warning message:
In normalizePath(path, winslash = winslash, mustWork = mustWork) :
path[1]="index.Rmd": No such file or directory
Execution halted
Error in Rscript_render(f, render_args, render_meta) :
Failed to compile index.Rmd
In addition: Warning message:
In xfun::prose_index(x) : Code fences are not balanced
>
Hey @dcossyleon,
Can you add a readme with badges so we can easily link to Travis build logs? Netlify not necessary obviously...
See: https://github.com/rstudio-education/stat545-reboot/blob/master/README.md
Using javascript and css
Hey, love your work. I've found it really helpful!
I got stuck in section 12.5 for a bit because it took my a while that I had to source the load.R
script in order for the '.rda' files to get created. Kind of obvious in hindsight, but at the time I thought the script might get called by devtools
along the way. A little note to source the script would be helpful for people like me who are a bit slow :)
Just pointing out we need to note that this requires an "edit" field.
bookdown::gitbook:
css: assets/style.css
config:
toc:
before: |
<li><a href="./">A Minimal Book Example</a></li>
after: |
<li><a href="https://github.com/rstudio/bookdown" target="blank">Published with bookdown</a></li>
download: ["rmd"]
So you'll get this error:
1: In download_filenames(config) :
The edit link was not specified, and the download link for RMD will not work
Fixed by adding to index.Rmd
YAML:
edit: https://github.com/rstudio-education/rmd4medicine/book/edit/master/%s
The twitter icon will show up in rmd only when "ion-social-twitter" is used (this is the only ionicon example given in the R Markdown book), but the name of the icon on iconicon's website is "logo-twitter". It's not clear how anyone would know to use social as part of the prefix.
re: Carl's resource.
You've set up, how do you now maintain? Which steps are 1x only, which steps are repeat each time you update? [insert DAVID MEZA QUOTE]
https://github.com/hadley/r-pkgs/blob/58dd635b423861382f2856742303833e27aef5a9/style.css#L16:L51
Source code:
:::rstudio-tip
Through the book, we highlight specific ways that RStudio can expedite your package development workflow, in specially formatted sections like this.
:::
This will only work with bookdown b/c it is using pandoc.
as in tidyverse cookbook
empty space top and bottom
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.