Skip to content
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

Unable to build with R 3.6.0 on Mac OS 10.13.6 #519

Closed
gvwilson opened this issue Apr 8, 2020 · 18 comments
Closed

Unable to build with R 3.6.0 on Mac OS 10.13.6 #519

gvwilson opened this issue Apr 8, 2020 · 18 comments

Comments

@gvwilson
Copy link

gvwilson commented Apr 8, 2020

  • Cloned this repo to my Mac
  • HEAD is 5df2127ff
  • bash ./_build.sh produces warnings about missing packages
    • See below for what I've installed
  • Still getting error from lines 905-919 (07-wt-ed-ds-pipeline.Rmd) (see error log attached).

Installation:

> devtools::install_github("data-edu/dataedu")
> install.packages("RefManageR")
> install.packages("apaTables")
> install.packages("sjPlot")

R:

> sessionInfo()
R version 3.6.0 (2019-04-26)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.6

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

locale:
[1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8

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

loaded via a namespace (and not attached):
[1] compiler_3.6.0

Output from _build.sh:


Rscript -e "bookdown::render_book('index.Rmd', 'bookdown::gitbook')"


processing file: index.Rmd

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |..............                                                        |  20%
  ordinary text without R code


  |                                                                            
  |............................                                          |  40%
label: unnamed-chunk-1 (with options) 
List of 2
 $ include: logi FALSE
 $ eval   : logi TRUE


  |                                                                            
  |..........................................                            |  60%
  ordinary text without R code


  |                                                                            
  |........................................................              |  80%
label: unnamed-chunk-2 (with options) 
List of 2
 $ fig.cap: chr "The Tweet That Started It All"
 $ echo   : logi FALSE


  |                                                                            
  |......................................................................| 100%
  ordinary text without R code


output file: index.knit.md



processing file: 01-introduction.Rmd

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |......................................................................| 100%
  ordinary text without R code


output file: 01-introduction.knit.md



processing file: 02-how-to-use.Rmd

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |......................................................................| 100%
  ordinary text without R code


output file: 02-how-to-use.knit.md



processing file: 03-data-scientist-in-edu.Rmd

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |......................................................................| 100%
  ordinary text without R code


output file: 03-data-scientist-in-edu.knit.md



processing file: 04-special-considerations.Rmd

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |......................................................................| 100%
  ordinary text without R code


output file: 04-special-considerations.knit.md



processing file: 05-foundational-skills_1.Rmd

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |..                                                                    |   3%
  ordinary text without R code


  |                                                                            
  |....                                                                  |   5%
label: fig5-1 (with options) 
List of 2
 $ fig.cap: chr "Icons"
 $ echo   : logi FALSE


  |                                                                            
  |......                                                                |   8%
  ordinary text without R code


  |                                                                            
  |........                                                              |  11%
label: fig5-2 (with options) 
List of 2
 $ fig.cap: chr "RStudio Layout"
 $ echo   : logi FALSE


  |                                                                            
  |.........                                                             |  14%
  ordinary text without R code


  |                                                                            
  |...........                                                           |  16%
label: fig5-3 (with options) 
List of 2
 $ fig.cap: chr "Creating a new R Script in RStudio"
 $ echo   : logi FALSE


  |                                                                            
  |.............                                                         |  19%
  ordinary text without R code


  |                                                                            
  |...............                                                       |  22%
label: fig5-4 (with options) 
List of 2
 $ fig.cap: chr "Selecting Global Options from the Tool Dropdown Menu"
 $ echo   : logi FALSE


  |                                                                            
  |.................                                                     |  24%
  ordinary text without R code


  |                                                                            
  |...................                                                   |  27%
label: fig5-5 (with options) 
List of 2
 $ fig.cap: chr "General tab from Global Options"
 $ echo   : logi FALSE


  |                                                                            
  |.....................                                                 |  30%
  ordinary text without R code


  |                                                                            
  |.......................                                               |  32%
label: fig5-6 (with options) 
List of 2
 $ fig.cap: chr "RStudio layout with the Environment Pane Minimized"
 $ echo   : logi FALSE


  |                                                                            
  |.........................                                             |  35%
  ordinary text without R code


  |                                                                            
  |..........................                                            |  38%
label: fig5-7 (with options) 
List of 2
 $ fig.cap: chr "Accessing the Pane Layout from the View Dropdown Menu"
 $ echo   : logi FALSE


  |                                                                            
  |............................                                          |  41%
  ordinary text without R code


  |                                                                            
  |..............................                                        |  43%
label: fig5-8 (with options) 
List of 2
 $ fig.cap: chr "Pane Layout options within RStudio"
 $ echo   : logi FALSE


  |                                                                            
  |................................                                      |  46%
  ordinary text without R code


  |                                                                            
  |..................................                                    |  49%
label: fig5-9 (with options) 
List of 2
 $ fig.cap: chr "Using the Console as a Calculator"
 $ echo   : logi FALSE


  |                                                                            
  |....................................                                  |  51%
  ordinary text without R code


  |                                                                            
  |......................................                                |  54%
label: unnamed-chunk-1 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |........................................                              |  57%
  ordinary text without R code


  |                                                                            
  |..........................................                            |  59%
label: fig5-10 (with options) 
List of 2
 $ fig.cap: chr "Printing Text to the Console"
 $ echo   : logi FALSE


  |                                                                            
  |............................................                          |  62%
  ordinary text without R code


  |                                                                            
  |.............................................                         |  65%
label: unnamed-chunk-2 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |...............................................                       |  68%
  ordinary text without R code


  |                                                                            
  |.................................................                     |  70%
label: fig5-11 (with options) 
List of 2
 $ fig.cap: chr "Incomplete Parentheses Change what R Expects Next"
 $ echo   : logi FALSE


  |                                                                            
  |...................................................                   |  73%
  ordinary text without R code


  |                                                                            
  |.....................................................                 |  76%
label: unnamed-chunk-3 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |.......................................................               |  78%
  ordinary text without R code


  |                                                                            
  |.........................................................             |  81%
label: unnamed-chunk-4 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |...........................................................           |  84%
  ordinary text without R code


  |                                                                            
  |.............................................................         |  86%
label: unnamed-chunk-5 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |..............................................................        |  89%
  ordinary text without R code


  |                                                                            
  |................................................................      |  92%
label: unnamed-chunk-6 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |..................................................................    |  95%
  ordinary text without R code


  |                                                                            
  |....................................................................  |  97%
label: unnamed-chunk-7 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |......................................................................| 100%
  ordinary text without R code


output file: 05-foundational-skills_1.knit.md



processing file: 06-foundational-skills_2.Rmd

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |..                                                                    |   2%
  ordinary text without R code


  |                                                                            
  |...                                                                   |   4%
label: unnamed-chunk-1 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |.....                                                                 |   7%
  ordinary text without R code


  |                                                                            
  |......                                                                |   9%
label: unnamed-chunk-2 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |........                                                              |  11%
  ordinary text without R code


  |                                                                            
  |.........                                                             |  13%
label: unnamed-chunk-3 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |...........                                                           |  16%
  ordinary text without R code


  |                                                                            
  |............                                                          |  18%
label: fig6-1 (with options) 
List of 2
 $ fig.cap: chr "Image of the Packages pane, which is found in the bottom right corner of the RStudio IDE, along with the Files,"| __truncated__
 $ echo   : logi FALSE


  |                                                                            
  |..............                                                        |  20%
  ordinary text without R code


  |                                                                            
  |................                                                      |  22%
label: unnamed-chunk-4 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |.................                                                     |  24%
  ordinary text without R code


  |                                                                            
  |...................                                                   |  27%
label: unnamed-chunk-5 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |....................                                                  |  29%
  ordinary text without R code


  |                                                                            
  |......................                                                |  31%
label: unnamed-chunk-6

  |                                                                            
  |.......................                                               |  33%
  ordinary text without R code


  |                                                                            
  |.........................                                             |  36%
label: fig6-2 (with options) 
List of 2
 $ fig.cap: chr "Error message when running ?mutate"
 $ echo   : logi FALSE


  |                                                                            
  |..........................                                            |  38%
  ordinary text without R code


  |                                                                            
  |............................                                          |  40%
label: unnamed-chunk-7 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |..............................                                        |  42%
  ordinary text without R code


  |                                                                            
  |...............................                                       |  44%
label: fig6-3 (with options) 
List of 2
 $ fig.cap: chr "Example from the `coalesce()` Help documentation"
 $ echo   : logi FALSE


  |                                                                            
  |.................................                                     |  47%
  ordinary text without R code


  |                                                                            
  |..................................                                    |  49%
label: unnamed-chunk-8 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |....................................                                  |  51%
  ordinary text without R code


  |                                                                            
  |.....................................                                 |  53%
label: unnamed-chunk-9 (with options) 
List of 3
 $ eval   : logi FALSE
 $ error  : logi FALSE
 $ message: logi FALSE


  |                                                                            
  |.......................................                               |  56%
  ordinary text without R code


  |                                                                            
  |........................................                              |  58%
label: fig6-4 (with options) 
List of 2
 $ fig.cap: chr "List of attached packages and associated conflicts when loading the Tidyverse"
 $ echo   : logi FALSE


  |                                                                            
  |..........................................                            |  60%
  ordinary text without R code


  |                                                                            
  |............................................                          |  62%
label: unnamed-chunk-10 (with options) 
List of 1
 $ engine: chr "block"


  |                                                                            
  |.............................................                         |  64%
  ordinary text without R code


  |                                                                            
  |...............................................                       |  67%
label: unnamed-chunk-11 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |................................................                      |  69%
  ordinary text without R code


  |                                                                            
  |..................................................                    |  71%
label: unnamed-chunk-12 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |...................................................                   |  73%
  ordinary text without R code


  |                                                                            
  |.....................................................                 |  76%
label: fig6-5 (with options) 
List of 2
 $ fig.cap: chr "Loading the `ma_data` Dataset"
 $ echo   : logi FALSE


  |                                                                            
  |......................................................                |  78%
  ordinary text without R code


  |                                                                            
  |........................................................              |  80%
label: unnamed-chunk-13 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |..........................................................            |  82%
  ordinary text without R code


  |                                                                            
  |...........................................................           |  84%
label: unnamed-chunk-14 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |.............................................................         |  87%
  ordinary text without R code


  |                                                                            
  |..............................................................        |  89%
label: fig6-6 (with options) 
List of 2
 $ fig.cap: chr "The Treachery of Images by Magritte"
 $ echo   : logi FALSE


  |                                                                            
  |................................................................      |  91%
  ordinary text without R code


  |                                                                            
  |.................................................................     |  93%
label: unnamed-chunk-15 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |...................................................................   |  96%
  ordinary text without R code


  |                                                                            
  |....................................................................  |  98%
label: unnamed-chunk-16 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |......................................................................| 100%
  ordinary text without R code


output file: 06-foundational-skills_2.knit.md



processing file: 07-wt-ed-ds-pipeline.Rmd

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |.                                                                     |   1%
  ordinary text without R code


  |                                                                            
  |.                                                                     |   2%
label: unnamed-chunk-1 (with options) 
List of 1
 $ eval: symbol F


  |                                                                            
  |..                                                                    |   3%
  ordinary text without R code


  |                                                                            
  |...                                                                   |   4%
label: unnamed-chunk-2 (with options) 
List of 1
 $ eval: symbol F


  |                                                                            
  |....                                                                  |   5%
  ordinary text without R code


  |                                                                            
  |....                                                                  |   6%
label: loading-packages (with options) 
List of 2
 $ message: symbol F
 $ warning: symbol F

── Attaching packages ─────────────────────────────────────── tidyverse 1.2.1 ──
✔ ggplot2 3.3.0.9000     ✔ purrr   0.3.3     
✔ tibble  3.0.0          ✔ dplyr   0.8.3     
✔ tidyr   1.0.0          ✔ stringr 1.4.0     
✔ readr   1.3.1          ✔ forcats 0.4.0     
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
Learn more about sjPlot with 'browseVignettes("sjPlot")'.

  |                                                                            
  |.....                                                                 |   7%
  ordinary text without R code


  |                                                                            
  |......                                                                |   8%
label: unnamed-chunk-3

  |                                                                            
  |.......                                                               |   9%
  ordinary text without R code


  |                                                                            
  |.......                                                               |  10%
label: unnamed-chunk-4

  |                                                                            
  |........                                                              |  11%
  ordinary text without R code


  |                                                                            
  |.........                                                             |  12%
label: unnamed-chunk-5

  |                                                                            
  |.........                                                             |  14%
  ordinary text without R code


  |                                                                            
  |..........                                                            |  15%
label: unnamed-chunk-6

  |                                                                            
  |...........                                                           |  16%
  ordinary text without R code


  |                                                                            
  |............                                                          |  17%
label: unnamed-chunk-7

  |                                                                            
  |............                                                          |  18%
  ordinary text without R code


  |                                                                            
  |.............                                                         |  19%
label: unnamed-chunk-8

  |                                                                            
  |..............                                                        |  20%
  ordinary text without R code


  |                                                                            
  |...............                                                       |  21%
label: unnamed-chunk-9

  |                                                                            
  |...............                                                       |  22%
  ordinary text without R code


  |                                                                            
  |................                                                      |  23%
label: unnamed-chunk-10

  |                                                                            
  |.................                                                     |  24%
  ordinary text without R code


  |                                                                            
  |..................                                                    |  25%
label: unnamed-chunk-11

  |                                                                            
  |..................                                                    |  26%
  ordinary text without R code


  |                                                                            
  |...................                                                   |  27%
label: unnamed-chunk-12

  |                                                                            
  |....................                                                  |  28%
  ordinary text without R code


  |                                                                            
  |....................                                                  |  29%
label: unnamed-chunk-13

  |                                                                            
  |.....................                                                 |  30%
  ordinary text without R code


  |                                                                            
  |......................                                                |  31%
label: unnamed-chunk-14

  |                                                                            
  |.......................                                               |  32%
  ordinary text without R code


  |                                                                            
  |.......................                                               |  33%
label: unnamed-chunk-15

  |                                                                            
  |........................                                              |  34%
  ordinary text without R code


  |                                                                            
  |.........................                                             |  35%
label: unnamed-chunk-16

  |                                                                            
  |..........................                                            |  36%
  ordinary text without R code


  |                                                                            
  |..........................                                            |  38%
label: unnamed-chunk-17

  |                                                                            
  |...........................                                           |  39%
  ordinary text without R code


  |                                                                            
  |............................                                          |  40%
label: unnamed-chunk-18

  |                                                                            
  |............................                                          |  41%
  ordinary text without R code


  |                                                                            
  |.............................                                         |  42%
label: unnamed-chunk-19

  |                                                                            
  |..............................                                        |  43%
  ordinary text without R code


  |                                                                            
  |...............................                                       |  44%
label: unnamed-chunk-20

  |                                                                            
  |...............................                                       |  45%
  ordinary text without R code


  |                                                                            
  |................................                                      |  46%
label: unnamed-chunk-21

  |                                                                            
  |.................................                                     |  47%
  ordinary text without R code


  |                                                                            
  |..................................                                    |  48%
label: unnamed-chunk-22

  |                                                                            
  |..................................                                    |  49%
  ordinary text without R code


  |                                                                            
  |...................................                                   |  50%
label: unnamed-chunk-23

  |                                                                            
  |....................................                                  |  51%
  ordinary text without R code


  |                                                                            
  |....................................                                  |  52%
label: unnamed-chunk-24

  |                                                                            
  |.....................................                                 |  53%
  ordinary text without R code


  |                                                                            
  |......................................                                |  54%
label: unnamed-chunk-25

  |                                                                            
  |.......................................                               |  55%
   inline R code fragments


  |                                                                            
  |.......................................                               |  56%
label: unnamed-chunk-26

  |                                                                            
  |........................................                              |  57%
  ordinary text without R code


  |                                                                            
  |.........................................                             |  58%
label: unnamed-chunk-27

  |                                                                            
  |..........................................                            |  59%
  ordinary text without R code


  |                                                                            
  |..........................................                            |  60%
label: unnamed-chunk-28

  |                                                                            
  |...........................................                           |  61%
  ordinary text without R code


  |                                                                            
  |............................................                          |  62%
label: unnamed-chunk-29

  |                                                                            
  |............................................                          |  64%
   inline R code fragments


  |                                                                            
  |.............................................                         |  65%
label: unnamed-chunk-30

  |                                                                            
  |..............................................                        |  66%
  ordinary text without R code


  |                                                                            
  |...............................................                       |  67%
label: fig7-1 (with options) 
List of 4
 $ warning: logi FALSE
 $ message: logi FALSE
 $ results: chr "hide"
 $ fig.cap: chr "Example Plot"

Quitting from lines 905-919 (07-wt-ed-ds-pipeline.Rmd) 
Error in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y,  : 
  polygon edge not found
Calls: local ... <Anonymous> -> widthDetails -> widthDetails.text -> grid.Call
In addition: There were 30 warnings (use warnings() to see them)

Execution halted
Error in Rscript_render(f, render_args, render_meta) : 
  Failed to compile 07-wt-ed-ds-pipeline.Rmd
Calls: <Anonymous> -> render_new_session -> Rscript_render
Execution halted
@jrosen48
Copy link
Collaborator

jrosen48 commented Apr 8, 2020

We are looking into this now - sorry about this (and thanks very much for telling us about it).

@restrellado
Copy link
Collaborator

Thanks @gvwilson! I'm tagging @ivelasq in on this, who's been guiding me through the process. Here's more info:

I can reproduce the error when I

  • knit ch 7 on my Mac
  • knit another chapter that uses theme_dataedu(), like ch 11. Or when I
  • run this code:
library(tidyverse)
library(dataedu)
ggplot(mtcars, aes(x = mpg, y = cyl)) +
  geom_point() +
  theme_dataedu()

Ch 7 knits properly when I

  • remove + theme_dataedu() from each {ggplot2} code chunk or when I
  • replace + theme_dataedu() with + theme_minimal()

@restrellado
Copy link
Collaborator

Kudos to @ivelasq for teaming up on this. We're pretty sure this has to do with a missing Gill Sans MT font, at least on my Mac. @gvwilson do you have Gill Sans MT installed on your Mac?

After I installed Gill Sans MT and ran

extrafont::font_import()
loadfonts()

library(tidyverse)
library(dataedu)
ggplot(mtcars, aes(x = mpg, y = cyl)) +
    geom_point() +
    theme_dataedu()

it worked fine. Then we restarted R and knitted Ch 7, which also worked.

@ivelasq is looking for a way for {dataedu} to check for Gill Sans MT. Then we can default to a different font if Gill Sans MT is not installed. Worst case scenario is we'll just change the font to something we're confident most people will have.

@gvwilson as a temporary solution, feel free to remove + theme_dataedu() from the {ggplot2} code chunks and it should build. Thank you again for filing the issue and giving us a shot making it better!

Super curious about why a missing font would cause the polygon error though. Any ideas on that?

@jrosen48
Copy link
Collaborator

@restrellado can you say from where you downloaded Gill Sans MT? Found one set of fonts to download, but none seem to be the "base" font (i.e., they're for bold, italic, etc.). I may be misunderstanding how font files work.Having what I think is this same issue with a fresh install of the pkg.!

@ivelasq
Copy link
Collaborator

ivelasq commented Jun 1, 2020

Hi @gvwilson, we've updated the {dataedu} package and hope that it resolves the font issue you were encountering. Please reinstall and let us know how it goes! Thanks!

@gvwilson
Copy link
Author

gvwilson commented Jun 1, 2020

Hi @ivelasq - unfortunately it still fails to build for me. I have done the following to correct early errors:

install.packages('showtext')
install.packages('tidytext')
install.packages('textdata')

but it still fails with:

Quitting from lines 184-185 (11-wt-text-analysis.Rmd) 
Error in menu(choices = c("Yes", "No"), title = title) : 
  menu() cannot be used non-interactively

I am sync'd with commit bf7cc9c.

@restrellado
Copy link
Collaborator

Hi @gvwilson Sorry that happened! This can happen if you don't have the NRC Word-Emotion Association Lexicon downloaded yet. If that's true for you, can you please try running this in your console:

tidytext::get_sentiments("nrc")

If you don't already have NRC downloaded, R should prompt you to download it. I think the build breaks when it gets to this part because it doesn't have a way to get a "Yes" from you. Let us know if that works or if you've already tried that!

@gvwilson
Copy link
Author

gvwilson commented Jun 3, 2020

Thanks - I installed that interactively and re-ran ./_build.sh. I then rebuilt several times, each build failing on another missing package:

  • randomNames
  • dummies
  • caret
  • ranger
  • tidylog

The first two were not available for R 3.6.0 on the first CRAN mirror I tried, but were available from the Tokyo mirror.

Even with these installed, the build failed because of a missing package, but didn't give me the name. The build log is below.

Thanks,
Greg


Rscript -e "bookdown::render_book('index.Rmd', 'bookdown::gitbook')"


processing file: index.Rmd

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |..............                                                        |  20%
  ordinary text without R code


  |                                                                            
  |............................                                          |  40%
label: unnamed-chunk-1 (with options) 
List of 2
 $ include: logi FALSE
 $ eval   : logi TRUE


  |                                                                            
  |..........................................                            |  60%
  ordinary text without R code


  |                                                                            
  |........................................................              |  80%
label: unnamed-chunk-2 (with options) 
List of 2
 $ fig.cap: chr "The Tweet That Started It All"
 $ echo   : logi FALSE


  |                                                                            
  |......................................................................| 100%
  ordinary text without R code


output file: index.knit.md



processing file: 01-introduction.Rmd

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |......................................................................| 100%
  ordinary text without R code


output file: 01-introduction.knit.md



processing file: 02-how-to-use.Rmd

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |......................................................................| 100%
  ordinary text without R code


output file: 02-how-to-use.knit.md



processing file: 03-data-scientist-in-edu.Rmd

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |......................................................................| 100%
  ordinary text without R code


output file: 03-data-scientist-in-edu.knit.md



processing file: 04-special-considerations.Rmd

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |......................................................................| 100%
  ordinary text without R code


output file: 04-special-considerations.knit.md



processing file: 05-foundational-skills_1.Rmd

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |..                                                                    |   3%
  ordinary text without R code


  |                                                                            
  |....                                                                  |   5%
label: fig5-1 (with options) 
List of 2
 $ fig.cap: chr "Icons"
 $ echo   : logi FALSE


  |                                                                            
  |......                                                                |   8%
  ordinary text without R code


  |                                                                            
  |........                                                              |  11%
label: fig5-2 (with options) 
List of 2
 $ fig.cap: chr "RStudio Layout"
 $ echo   : logi FALSE


  |                                                                            
  |.........                                                             |  14%
  ordinary text without R code


  |                                                                            
  |...........                                                           |  16%
label: fig5-3 (with options) 
List of 2
 $ fig.cap: chr "Creating a new R Script in RStudio"
 $ echo   : logi FALSE


  |                                                                            
  |.............                                                         |  19%
  ordinary text without R code


  |                                                                            
  |...............                                                       |  22%
label: fig5-4 (with options) 
List of 2
 $ fig.cap: chr "Selecting Global Options from the Tool Dropdown Menu"
 $ echo   : logi FALSE


  |                                                                            
  |.................                                                     |  24%
  ordinary text without R code


  |                                                                            
  |...................                                                   |  27%
label: fig5-5 (with options) 
List of 2
 $ fig.cap: chr "General tab from Global Options"
 $ echo   : logi FALSE


  |                                                                            
  |.....................                                                 |  30%
  ordinary text without R code


  |                                                                            
  |.......................                                               |  32%
label: fig5-6 (with options) 
List of 2
 $ fig.cap: chr "RStudio layout with the Environment Pane Minimized"
 $ echo   : logi FALSE


  |                                                                            
  |.........................                                             |  35%
  ordinary text without R code


  |                                                                            
  |..........................                                            |  38%
label: fig5-7 (with options) 
List of 2
 $ fig.cap: chr "Accessing the Pane Layout from the View Dropdown Menu"
 $ echo   : logi FALSE


  |                                                                            
  |............................                                          |  41%
  ordinary text without R code


  |                                                                            
  |..............................                                        |  43%
label: fig5-8 (with options) 
List of 2
 $ fig.cap: chr "Pane Layout options within RStudio"
 $ echo   : logi FALSE


  |                                                                            
  |................................                                      |  46%
  ordinary text without R code


  |                                                                            
  |..................................                                    |  49%
label: fig5-9 (with options) 
List of 2
 $ fig.cap: chr "Using the Console as a Calculator"
 $ echo   : logi FALSE


  |                                                                            
  |....................................                                  |  51%
  ordinary text without R code


  |                                                                            
  |......................................                                |  54%
label: unnamed-chunk-1 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |........................................                              |  57%
  ordinary text without R code


  |                                                                            
  |..........................................                            |  59%
label: fig5-10 (with options) 
List of 2
 $ fig.cap: chr "Printing Text to the Console"
 $ echo   : logi FALSE


  |                                                                            
  |............................................                          |  62%
  ordinary text without R code


  |                                                                            
  |.............................................                         |  65%
label: unnamed-chunk-2 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |...............................................                       |  68%
  ordinary text without R code


  |                                                                            
  |.................................................                     |  70%
label: fig5-11 (with options) 
List of 2
 $ fig.cap: chr "Incomplete Parentheses Change what R Expects Next"
 $ echo   : logi FALSE


  |                                                                            
  |...................................................                   |  73%
  ordinary text without R code


  |                                                                            
  |.....................................................                 |  76%
label: unnamed-chunk-3 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |.......................................................               |  78%
  ordinary text without R code


  |                                                                            
  |.........................................................             |  81%
label: unnamed-chunk-4 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |...........................................................           |  84%
  ordinary text without R code


  |                                                                            
  |.............................................................         |  86%
label: unnamed-chunk-5 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |..............................................................        |  89%
  ordinary text without R code


  |                                                                            
  |................................................................      |  92%
label: unnamed-chunk-6 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |..................................................................    |  95%
  ordinary text without R code


  |                                                                            
  |....................................................................  |  97%
label: unnamed-chunk-7 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |......................................................................| 100%
  ordinary text without R code


output file: 05-foundational-skills_1.knit.md



processing file: 06-foundational-skills_2.Rmd

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |..                                                                    |   2%
  ordinary text without R code


  |                                                                            
  |...                                                                   |   4%
label: unnamed-chunk-1 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |.....                                                                 |   7%
  ordinary text without R code


  |                                                                            
  |......                                                                |   9%
label: unnamed-chunk-2 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |........                                                              |  11%
  ordinary text without R code


  |                                                                            
  |.........                                                             |  13%
label: unnamed-chunk-3 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |...........                                                           |  16%
  ordinary text without R code


  |                                                                            
  |............                                                          |  18%
label: fig6-1 (with options) 
List of 2
 $ fig.cap: chr "Image of the Packages pane, which is found in the bottom right corner of the RStudio IDE, along with the Files,"| __truncated__
 $ echo   : logi FALSE


  |                                                                            
  |..............                                                        |  20%
  ordinary text without R code


  |                                                                            
  |................                                                      |  22%
label: unnamed-chunk-4 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |.................                                                     |  24%
  ordinary text without R code


  |                                                                            
  |...................                                                   |  27%
label: unnamed-chunk-5 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |....................                                                  |  29%
  ordinary text without R code


  |                                                                            
  |......................                                                |  31%
label: unnamed-chunk-6

  |                                                                            
  |.......................                                               |  33%
  ordinary text without R code


  |                                                                            
  |.........................                                             |  36%
label: fig6-2 (with options) 
List of 2
 $ fig.cap: chr "Error message when running ?mutate"
 $ echo   : logi FALSE


  |                                                                            
  |..........................                                            |  38%
  ordinary text without R code


  |                                                                            
  |............................                                          |  40%
label: unnamed-chunk-7 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |..............................                                        |  42%
  ordinary text without R code


  |                                                                            
  |...............................                                       |  44%
label: fig6-3 (with options) 
List of 2
 $ fig.cap: chr "Example from the `coalesce()` Help documentation"
 $ echo   : logi FALSE


  |                                                                            
  |.................................                                     |  47%
  ordinary text without R code


  |                                                                            
  |..................................                                    |  49%
label: unnamed-chunk-8 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |....................................                                  |  51%
  ordinary text without R code


  |                                                                            
  |.....................................                                 |  53%
label: unnamed-chunk-9 (with options) 
List of 3
 $ eval   : logi FALSE
 $ error  : logi FALSE
 $ message: logi FALSE


  |                                                                            
  |.......................................                               |  56%
  ordinary text without R code


  |                                                                            
  |........................................                              |  58%
label: fig6-4 (with options) 
List of 2
 $ fig.cap: chr "List of attached packages and associated conflicts when loading the Tidyverse"
 $ echo   : logi FALSE


  |                                                                            
  |..........................................                            |  60%
  ordinary text without R code


  |                                                                            
  |............................................                          |  62%
label: unnamed-chunk-10 (with options) 
List of 1
 $ engine: chr "block"


  |                                                                            
  |.............................................                         |  64%
  ordinary text without R code


  |                                                                            
  |...............................................                       |  67%
label: unnamed-chunk-11 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |................................................                      |  69%
  ordinary text without R code


  |                                                                            
  |..................................................                    |  71%
label: unnamed-chunk-12 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |...................................................                   |  73%
  ordinary text without R code


  |                                                                            
  |.....................................................                 |  76%
label: fig6-5 (with options) 
List of 2
 $ fig.cap: chr "Loading the `ma_data` Dataset"
 $ echo   : logi FALSE


  |                                                                            
  |......................................................                |  78%
  ordinary text without R code


  |                                                                            
  |........................................................              |  80%
label: unnamed-chunk-13 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |..........................................................            |  82%
  ordinary text without R code


  |                                                                            
  |...........................................................           |  84%
label: unnamed-chunk-14 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |.............................................................         |  87%
  ordinary text without R code


  |                                                                            
  |..............................................................        |  89%
label: fig6-6 (with options) 
List of 2
 $ fig.cap: chr "The Treachery of Images by Magritte"
 $ echo   : logi FALSE


  |                                                                            
  |................................................................      |  91%
  ordinary text without R code


  |                                                                            
  |.................................................................     |  93%
label: unnamed-chunk-15 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |...................................................................   |  96%
  ordinary text without R code


  |                                                                            
  |....................................................................  |  98%
label: unnamed-chunk-16 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |......................................................................| 100%
  ordinary text without R code


output file: 06-foundational-skills_2.knit.md



processing file: 07-wt-ed-ds-pipeline.Rmd

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |.                                                                     |   1%
  ordinary text without R code


  |                                                                            
  |.                                                                     |   2%
label: unnamed-chunk-1 (with options) 
List of 1
 $ eval: symbol F


  |                                                                            
  |..                                                                    |   3%
  ordinary text without R code


  |                                                                            
  |...                                                                   |   4%
label: unnamed-chunk-2 (with options) 
List of 1
 $ eval: symbol F


  |                                                                            
  |....                                                                  |   5%
  ordinary text without R code


  |                                                                            
  |....                                                                  |   6%
label: loading-packages (with options) 
List of 2
 $ message: symbol F
 $ warning: symbol F

── Attaching packages ─────────────────────────────────────── tidyverse 1.2.1 ──
✔ ggplot2 3.3.0.9000     ✔ purrr   0.3.3     
✔ tibble  3.0.0          ✔ dplyr   1.0.0     
✔ tidyr   1.0.0          ✔ stringr 1.4.0     
✔ readr   1.3.1          ✔ forcats 0.4.0     
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()

  |                                                                            
  |.....                                                                 |   7%
  ordinary text without R code


  |                                                                            
  |......                                                                |   8%
label: unnamed-chunk-3

  |                                                                            
  |.......                                                               |   9%
  ordinary text without R code


  |                                                                            
  |.......                                                               |  10%
label: unnamed-chunk-4

  |                                                                            
  |........                                                              |  11%
  ordinary text without R code


  |                                                                            
  |.........                                                             |  12%
label: unnamed-chunk-5

  |                                                                            
  |.........                                                             |  14%
  ordinary text without R code


  |                                                                            
  |..........                                                            |  15%
label: unnamed-chunk-6

  |                                                                            
  |...........                                                           |  16%
  ordinary text without R code


  |                                                                            
  |............                                                          |  17%
label: unnamed-chunk-7

  |                                                                            
  |............                                                          |  18%
  ordinary text without R code


  |                                                                            
  |.............                                                         |  19%
label: unnamed-chunk-8

  |                                                                            
  |..............                                                        |  20%
  ordinary text without R code


  |                                                                            
  |...............                                                       |  21%
label: unnamed-chunk-9

  |                                                                            
  |...............                                                       |  22%
  ordinary text without R code


  |                                                                            
  |................                                                      |  23%
label: unnamed-chunk-10

  |                                                                            
  |.................                                                     |  24%
  ordinary text without R code


  |                                                                            
  |..................                                                    |  25%
label: unnamed-chunk-11

  |                                                                            
  |..................                                                    |  26%
  ordinary text without R code


  |                                                                            
  |...................                                                   |  27%
label: unnamed-chunk-12

  |                                                                            
  |....................                                                  |  28%
  ordinary text without R code


  |                                                                            
  |....................                                                  |  29%
label: unnamed-chunk-13

  |                                                                            
  |.....................                                                 |  30%
  ordinary text without R code


  |                                                                            
  |......................                                                |  31%
label: unnamed-chunk-14

  |                                                                            
  |.......................                                               |  32%
  ordinary text without R code


  |                                                                            
  |.......................                                               |  33%
label: unnamed-chunk-15

  |                                                                            
  |........................                                              |  34%
  ordinary text without R code


  |                                                                            
  |.........................                                             |  35%
label: unnamed-chunk-16

  |                                                                            
  |..........................                                            |  36%
  ordinary text without R code


  |                                                                            
  |..........................                                            |  38%
label: unnamed-chunk-17

  |                                                                            
  |...........................                                           |  39%
  ordinary text without R code


  |                                                                            
  |............................                                          |  40%
label: unnamed-chunk-18

  |                                                                            
  |............................                                          |  41%
  ordinary text without R code


  |                                                                            
  |.............................                                         |  42%
label: unnamed-chunk-19

  |                                                                            
  |..............................                                        |  43%
  ordinary text without R code


  |                                                                            
  |...............................                                       |  44%
label: unnamed-chunk-20

  |                                                                            
  |...............................                                       |  45%
  ordinary text without R code


  |                                                                            
  |................................                                      |  46%
label: unnamed-chunk-21

  |                                                                            
  |.................................                                     |  47%
  ordinary text without R code


  |                                                                            
  |..................................                                    |  48%
label: unnamed-chunk-22

  |                                                                            
  |..................................                                    |  49%
  ordinary text without R code


  |                                                                            
  |...................................                                   |  50%
label: unnamed-chunk-23

  |                                                                            
  |....................................                                  |  51%
  ordinary text without R code


  |                                                                            
  |....................................                                  |  52%
label: unnamed-chunk-24

  |                                                                            
  |.....................................                                 |  53%
  ordinary text without R code


  |                                                                            
  |......................................                                |  54%
label: unnamed-chunk-25

  |                                                                            
  |.......................................                               |  55%
   inline R code fragments


  |                                                                            
  |.......................................                               |  56%
label: unnamed-chunk-26

  |                                                                            
  |........................................                              |  57%
  ordinary text without R code


  |                                                                            
  |.........................................                             |  58%
label: unnamed-chunk-27

  |                                                                            
  |..........................................                            |  59%
  ordinary text without R code


  |                                                                            
  |..........................................                            |  60%
label: unnamed-chunk-28

  |                                                                            
  |...........................................                           |  61%
  ordinary text without R code


  |                                                                            
  |............................................                          |  62%
label: unnamed-chunk-29

  |                                                                            
  |............................................                          |  64%
   inline R code fragments


  |                                                                            
  |.............................................                         |  65%
label: unnamed-chunk-30

  |                                                                            
  |..............................................                        |  66%
  ordinary text without R code


  |                                                                            
  |...............................................                       |  67%
label: fig7-1 (with options) 
List of 5
 $ warning     : logi FALSE
 $ message     : logi FALSE
 $ results     : chr "hide"
 $ fig.showtext: logi TRUE
 $ fig.cap     : chr "Example Plot"


  |                                                                            
  |...............................................                       |  68%
  ordinary text without R code


  |                                                                            
  |................................................                      |  69%
label: fig7-2 (with options) 
List of 5
 $ message     : logi FALSE
 $ warning     : logi FALSE
 $ results     : chr "hide"
 $ fig.cap     : chr "Percentage Earned vs. Time Spent"
 $ fig.showtext: logi TRUE


  |                                                                            
  |.................................................                     |  70%
  ordinary text without R code


  |                                                                            
  |..................................................                    |  71%
label: fig7-3 (with options) 
List of 5
 $ message     : logi FALSE
 $ warning     : logi FALSE
 $ results     : chr "hide"
 $ fig.cap     : chr "Adding a Line of Best Fit"
 $ fig.showtext: logi TRUE

`geom_smooth()` using formula 'y ~ x'

  |                                                                            
  |..................................................                    |  72%
  ordinary text without R code


  |                                                                            
  |...................................................                   |  73%
label: unnamed-chunk-31

  |                                                                            
  |....................................................                  |  74%
  ordinary text without R code


  |                                                                            
  |....................................................                  |  75%
label: unnamed-chunk-32

  |                                                                            
  |.....................................................                 |  76%
  ordinary text without R code


  |                                                                            
  |......................................................                |  77%
label: unnamed-chunk-33 (with options) 
List of 2
 $ echo   : symbol F
 $ results: chr "hide"


  |                                                                            
  |.......................................................               |  78%
  ordinary text without R code


  |                                                                            
  |.......................................................               |  79%
label: unnamed-chunk-34 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |........................................................              |  80%
  ordinary text without R code


  |                                                                            
  |.........................................................             |  81%
label: unnamed-chunk-35

  |                                                                            
  |..........................................................            |  82%
  ordinary text without R code


  |                                                                            
  |..........................................................            |  83%
label: unnamed-chunk-36

  |                                                                            
  |...........................................................           |  84%
  ordinary text without R code


  |                                                                            
  |............................................................          |  85%
label: unnamed-chunk-37

  |                                                                            
  |.............................................................         |  86%
  ordinary text without R code


  |                                                                            
  |.............................................................         |  88%
label: unnamed-chunk-38 (with options) 
List of 2
 $ echo   : symbol F
 $ results: chr "hide"


  |                                                                            
  |..............................................................        |  89%
  ordinary text without R code


  |                                                                            
  |...............................................................       |  90%
label: unnamed-chunk-39

  |                                                                            
  |...............................................................       |  91%
  ordinary text without R code


  |                                                                            
  |................................................................      |  92%
label: unnamed-chunk-40 (with options) 
List of 2
 $ echo   : symbol F
 $ results: chr "hide"


  |                                                                            
  |.................................................................     |  93%
  ordinary text without R code


  |                                                                            
  |..................................................................    |  94%
label: unnamed-chunk-41

  |                                                                            
  |..................................................................    |  95%
  ordinary text without R code


  |                                                                            
  |...................................................................   |  96%
label: unnamed-chunk-42

  |                                                                            
  |....................................................................  |  97%
  ordinary text without R code


  |                                                                            
  |..................................................................... |  98%
label: unnamed-chunk-43 (with options) 
List of 2
 $ echo   : symbol F
 $ results: chr "hide"


  |                                                                            
  |..................................................................... |  99%
  ordinary text without R code


  |                                                                            
  |......................................................................| 100%
label: unnamed-chunk-44 (with options) 
List of 1
 $ echo: logi FALSE


output file: 07-wt-ed-ds-pipeline.knit.md

There were 50 or more warnings (use warnings() to see the first 50)


processing file: 08-wt-gradebook.Rmd

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |.                                                                     |   2%
  ordinary text without R code


  |                                                                            
  |...                                                                   |   4%
label: unnamed-chunk-1 (with options) 
List of 3
 $ echo   : logi TRUE
 $ message: logi FALSE
 $ warning: logi FALSE

── Attaching packages ─────────────────────────────────────── tidyverse 1.2.1 ──
✔ ggplot2 3.3.0.9000     ✔ purrr   0.3.3     
✔ tibble  3.0.0          ✔ dplyr   1.0.0     
✔ tidyr   1.0.0          ✔ stringr 1.4.0     
✔ readr   1.3.1          ✔ forcats 0.4.0     
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
here() starts at /Users/gvwilson/misc/data-science-in-education

Attaching package: 'janitor'

The following objects are masked from 'package:stats':

    chisq.test, fisher.test


  |                                                                            
  |....                                                                  |   6%
  ordinary text without R code


  |                                                                            
  |......                                                                |   9%
label: unnamed-chunk-2 (with options) 
List of 4
 $ eval   : logi FALSE
 $ echo   : logi TRUE
 $ message: logi FALSE
 $ warning: logi FALSE


  |                                                                            
  |.......                                                               |  11%
  ordinary text without R code


  |                                                                            
  |.........                                                             |  13%
label: import using file path (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |..........                                                            |  15%
  ordinary text without R code


  |                                                                            
  |............                                                          |  17%
label: read in data (with options) 
List of 4
 $ eval   : logi TRUE
 $ echo   : logi TRUE
 $ message: logi FALSE
 $ warning: logi FALSE


  |                                                                            
  |.............                                                         |  19%
  ordinary text without R code


  |                                                                            
  |...............                                                       |  21%
label: assign to new name (with options) 
List of 3
 $ echo   : logi TRUE
 $ message: logi FALSE
 $ warning: logi FALSE


  |                                                                            
  |................                                                      |  23%
  ordinary text without R code


  |                                                                            
  |..................                                                    |  26%
label: unnamed-chunk-3

  |                                                                            
  |...................                                                   |  28%
  ordinary text without R code


  |                                                                            
  |.....................                                                 |  30%
label: unnamed-chunk-4 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |......................                                                |  32%
  ordinary text without R code


  |                                                                            
  |........................                                              |  34%
label: unnamed-chunk-5 (with options) 
List of 3
 $ echo   : logi TRUE
 $ message: logi FALSE
 $ warning: logi FALSE


  |                                                                            
  |.........................                                             |  36%
  ordinary text without R code


  |                                                                            
  |...........................                                           |  38%
label: unnamed-chunk-6 (with options) 
List of 4
 $ eval   : logi FALSE
 $ echo   : logi TRUE
 $ message: logi FALSE
 $ warning: logi FALSE


  |                                                                            
  |............................                                          |  40%
  ordinary text without R code


  |                                                                            
  |..............................                                        |  43%
label: unnamed-chunk-7 (with options) 
List of 3
 $ echo   : logi TRUE
 $ message: logi FALSE
 $ warning: logi FALSE


  |                                                                            
  |...............................                                       |  45%
  ordinary text without R code


  |                                                                            
  |.................................                                     |  47%
label: unnamed-chunk-8 (with options) 
List of 3
 $ echo   : logi TRUE
 $ message: logi FALSE
 $ warning: logi FALSE


  |                                                                            
  |..................................                                    |  49%
  ordinary text without R code


  |                                                                            
  |....................................                                  |  51%
label: unnamed-chunk-9 (with options) 
List of 4
 $ eval   : logi FALSE
 $ echo   : logi TRUE
 $ message: logi FALSE
 $ warning: logi FALSE


  |                                                                            
  |.....................................                                 |  53%
  ordinary text without R code


  |                                                                            
  |.......................................                               |  55%
label: unnamed-chunk-10 (with options) 
List of 3
 $ echo   : logi TRUE
 $ message: logi FALSE
 $ warning: logi FALSE


  |                                                                            
  |........................................                              |  57%
  ordinary text without R code


  |                                                                            
  |..........................................                            |  60%
label: unnamed-chunk-11 (with options) 
List of 3
 $ echo   : logi TRUE
 $ message: logi FALSE
 $ warning: logi FALSE


  |                                                                            
  |...........................................                           |  62%
  ordinary text without R code


  |                                                                            
  |.............................................                         |  64%
label: unnamed-chunk-12 (with options) 
List of 4
 $ eval   : logi FALSE
 $ echo   : logi TRUE
 $ message: logi FALSE
 $ warning: logi FALSE


  |                                                                            
  |..............................................                        |  66%
  ordinary text without R code


  |                                                                            
  |................................................                      |  68%
label: fig8-1 (with options) 
List of 5
 $ message     : logi FALSE
 $ warning     : logi FALSE
 $ results     : chr "hide"
 $ fig.cap     : chr "Bar Graph of Student Grades"
 $ fig.showtext: logi TRUE


  |                                                                            
  |.................................................                     |  70%
  ordinary text without R code


  |                                                                            
  |...................................................                   |  72%
label: fig8-2 (with options) 
List of 5
 $ message     : logi FALSE
 $ warning     : logi FALSE
 $ results     : chr "hide"
 $ fig.cap     : chr "Distribution of Classwork Scores"
 $ fig.showtext: logi TRUE


  |                                                                            
  |....................................................                  |  74%
  ordinary text without R code


  |                                                                            
  |......................................................                |  77%
label: fig8-3 (with options) 
List of 5
 $ message     : logi FALSE
 $ warning     : logi FALSE
 $ results     : chr "hide"
 $ fig.cap     : chr "Relationship Between Overall Grade and Formative Assessments"
 $ fig.showtext: logi TRUE


  |                                                                            
  |.......................................................               |  79%
  ordinary text without R code


  |                                                                            
  |.........................................................             |  81%
label: fig8-4 (with options) 
List of 5
 $ message     : logi FALSE
 $ warning     : logi FALSE
 $ results     : chr "hide"
 $ fig.cap     : chr "Relationship Between Overall Grade and Formative Assessments (with Line of Best Fit)"
 $ fig.showtext: logi TRUE

`geom_smooth()` using formula 'y ~ x'

  |                                                                            
  |..........................................................            |  83%
  ordinary text without R code


  |                                                                            
  |............................................................          |  85%
label: fig8-5 (with options) 
List of 5
 $ message     : logi FALSE
 $ warning     : logi FALSE
 $ results     : chr "hide"
 $ fig.cap     : chr "Distribution of Formative Assessment Scores"
 $ fig.showtext: logi TRUE


  |                                                                            
  |.............................................................         |  87%
  ordinary text without R code


  |                                                                            
  |...............................................................       |  89%
label: fig8-6 (with options) 
List of 5
 $ message     : logi FALSE
 $ warning     : logi FALSE
 $ results     : chr "hide"
 $ fig.cap     : chr "Distribution of Overall Grade Scores"
 $ fig.showtext: logi TRUE


  |                                                                            
  |................................................................      |  91%
  ordinary text without R code


  |                                                                            
  |..................................................................    |  94%
label: unnamed-chunk-13 (with options) 
List of 3
 $ echo   : logi TRUE
 $ message: logi FALSE
 $ warning: logi FALSE


  |                                                                            
  |...................................................................   |  96%
  ordinary text without R code


  |                                                                            
  |..................................................................... |  98%
label: unnamed-chunk-14

  |                                                                            
  |......................................................................| 100%
  ordinary text without R code


output file: 08-wt-gradebook.knit.md

There were 50 or more warnings (use warnings() to see the first 50)


processing file: 09-wt-aggregate-data.Rmd

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |..                                                                    |   3%
  ordinary text without R code


  |                                                                            
  |....                                                                  |   5%
label: student level data example (with options) 
List of 1
 $ message: symbol F

── Attaching packages ─────────────────────────────────────── tidyverse 1.2.1 ──
✔ ggplot2 3.3.0.9000     ✔ purrr   0.3.3     
✔ tibble  3.0.0          ✔ dplyr   1.0.0     
✔ tidyr   1.0.0          ✔ stringr 1.4.0     
✔ readr   1.3.1          ✔ forcats 0.4.0     
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()

  |                                                                            
  |.....                                                                 |   8%
  ordinary text without R code


  |                                                                            
  |.......                                                               |  10%
label: aggregate level data example

  |                                                                            
  |.........                                                             |  13%
  ordinary text without R code


  |                                                                            
  |...........                                                           |  15%
label: unnamed-chunk-1 (with options) 
List of 2
 $ message: symbol F
 $ warning: symbol F

here() starts at /Users/gvwilson/misc/data-science-in-education

Attaching package: 'janitor'

The following objects are masked from 'package:stats':

    chisq.test, fisher.test


  |                                                                            
  |.............                                                         |  18%
  ordinary text without R code


  |                                                                            
  |..............                                                        |  21%
label: unnamed-chunk-2 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |................                                                      |  23%
  ordinary text without R code


  |                                                                            
  |..................                                                    |  26%
label: unnamed-chunk-3 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |....................                                                  |  28%
  ordinary text without R code


  |                                                                            
  |......................                                                |  31%
label: unnamed-chunk-4 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |.......................                                               |  33%
  ordinary text without R code


  |                                                                            
  |.........................                                             |  36%
label: unnamed-chunk-5 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |...........................                                           |  38%
  ordinary text without R code


  |                                                                            
  |.............................                                         |  41%
label: unnamed-chunk-6 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |...............................                                       |  44%
  ordinary text without R code


  |                                                                            
  |................................                                      |  46%
label: unnamed-chunk-7 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |..................................                                    |  49%
  ordinary text without R code


  |                                                                            
  |....................................                                  |  51%
label: unnamed-chunk-8 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |......................................                                |  54%
  ordinary text without R code


  |                                                                            
  |.......................................                               |  56%
label: unnamed-chunk-9 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |.........................................                             |  59%
  ordinary text without R code


  |                                                                            
  |...........................................                           |  62%
label: unnamed-chunk-10 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |.............................................                         |  64%
  ordinary text without R code


  |                                                                            
  |...............................................                       |  67%
label: unnamed-chunk-11 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |................................................                      |  69%
  ordinary text without R code


  |                                                                            
  |..................................................                    |  72%
label: unnamed-chunk-12 (with options) 
List of 1
 $ message: logi FALSE

Parsed with column specification:
cols(
  school_name = col_character(),
  category = col_character(),
  value = col_double()
)
Parsed with column specification:
cols(
  .default = col_double(),
  school_name = col_character()
)
See spec(...) for full column specifications.

  |                                                                            
  |....................................................                  |  74%
  ordinary text without R code


  |                                                                            
  |......................................................                |  77%
label: fig9-1 (with options) 
List of 5
 $ fig.align   : chr "center"
 $ results     : chr "hide"
 $ message     : logi FALSE
 $ fig.cap     : chr "Percentage of Population by Subgroup"
 $ fig.showtext: logi TRUE


  |                                                                            
  |........................................................              |  79%
  ordinary text without R code


  |                                                                            
  |.........................................................             |  82%
label: unnamed-chunk-13

  |                                                                            
  |...........................................................           |  85%
  ordinary text without R code


  |                                                                            
  |.............................................................         |  87%
label: fig9-2 (with options) 
List of 5
 $ fig.align   : chr "center"
 $ results     : chr "hide"
 $ message     : logi FALSE
 $ fig.cap     : chr "Count of Schools by White Population"
 $ fig.showtext: logi TRUE


  |                                                                            
  |...............................................................       |  90%
  ordinary text without R code


  |                                                                            
  |.................................................................     |  92%
label: fig9-3 (with options) 
List of 5
 $ fig.align   : chr "center"
 $ results     : chr "hide"
 $ message     : logi FALSE
 $ fig.cap     : chr "Distribution of Subgroups in High Poverty Schools"
 $ fig.showtext: logi TRUE


  |                                                                            
  |..................................................................    |  95%
  ordinary text without R code


  |                                                                            
  |....................................................................  |  97%
label: fig9-4 (with options) 
List of 6
 $ warning     : logi FALSE
 $ fig.align   : chr "center"
 $ message     : logi FALSE
 $ results     : chr "hide"
 $ fig.cap     : chr "FRPL Percentage vs. White Percentage"
 $ fig.showtext: logi TRUE


  |                                                                            
  |......................................................................| 100%
  ordinary text without R code


output file: 09-wt-aggregate-data.knit.md

There were 50 or more warnings (use warnings() to see the first 50)


processing file: 10-wt-longitudinal-analysis.Rmd

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |.                                                                     |   1%
  ordinary text without R code


  |                                                                            
  |.                                                                     |   2%
label: load custom themes (with options) 
List of 3
 $ echo   : logi FALSE
 $ message: logi FALSE
 $ eval   : logi FALSE


  |                                                                            
  |..                                                                    |   3%
  ordinary text without R code


  |                                                                            
  |..                                                                    |   4%
label: load packages (with options) 
List of 2
 $ message: logi FALSE
 $ warning: logi FALSE

── Attaching packages ─────────────────────────────────────── tidyverse 1.2.1 ──
✔ ggplot2 3.3.0.9000     ✔ purrr   0.3.3     
✔ tibble  3.0.0          ✔ dplyr   1.0.0     
✔ tidyr   1.0.0          ✔ stringr 1.4.0     
✔ readr   1.3.1          ✔ forcats 0.4.0     
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()

Attaching package: 'lubridate'

The following object is masked from 'package:base':

    date

here() starts at /Users/gvwilson/misc/data-science-in-education

Attaching package: 'here'

The following object is masked from 'package:lubridate':

    here


  |                                                                            
  |...                                                                   |   4%
  ordinary text without R code


  |                                                                            
  |....                                                                  |   5%
label: demo here (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |....                                                                  |   6%
  ordinary text without R code


  |                                                                            
  |.....                                                                 |   7%
label: unnamed-chunk-1 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |......                                                                |   8%
  ordinary text without R code


  |                                                                            
  |......                                                                |   9%
label: unnamed-chunk-2 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |.......                                                               |  10%
  ordinary text without R code


  |                                                                            
  |.......                                                               |  11%
label: read 2012 data (with options) 
List of 3
 $ echo   : logi FALSE
 $ message: symbol F
 $ warning: symbol F

Parsed with column specification:
cols(
  .default = col_character()
)
See spec(...) for full column specifications.

  |                                                                            
  |........                                                              |  12%
  ordinary text without R code


  |                                                                            
  |.........                                                             |  12%
label: read 2012 data with skip (with options) 
List of 2
 $ warning: logi FALSE
 $ message: logi FALSE

Parsed with column specification:
cols(
  .default = col_character(),
  Year = col_double()
)
See spec(...) for full column specifications.
Warning: 3 parsing failures.
  row  col expected                                    actual                                                                                                         file
16228 Year a double -------------------                       '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2012.csv'
16229 Year a double -   Data not available                    '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2012.csv'
16230 Year a double x   Data supressed due to small cell size '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2012.csv'


  |                                                                            
  |.........                                                             |  13%
  ordinary text without R code


  |                                                                            
  |..........                                                            |  14%
label: get filenames (with options) 
List of 1
 $ results: chr "hide"


  |                                                                            
  |...........                                                           |  15%
  ordinary text without R code


  |                                                                            
  |...........                                                           |  16%
label: read list of CSVs,  (with options) 
List of 2
 $ message: logi FALSE
 $ warning: logi FALSE

Parsed with column specification:
cols(
  .default = col_character(),
  Year = col_double()
)
See spec(...) for full column specifications.
Warning: 3 parsing failures.
  row  col expected                                    actual                                                                                                         file
16228 Year a double -------------------                       '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2012.csv'
16229 Year a double -   Data not available                    '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2012.csv'
16230 Year a double x   Data supressed due to small cell size '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2012.csv'

Parsed with column specification:
cols(
  .default = col_character(),
  Year = col_double()
)
See spec(...) for full column specifications.
Warning: 4 parsing failures.
  row  col expected                                           actual                                                                                                         file
16229 Year a double -------------------                              '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2013.csv'
16230 Year a double -  Data not available                            '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2013.csv'
16231 Year a double x Data suppressed due to small cell size         '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2013.csv'
16232 Year a double * Data flagged due to questionable data quality. '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2013.csv'

Parsed with column specification:
cols(
  .default = col_character(),
  Year = col_double()
)
See spec(...) for full column specifications.
Warning: 3 parsing failures.
  row  col expected                                   actual                                                                                                         file
16229 Year a double -------------------                      '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2014.csv'
16230 Year a double -  Data not available                    '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2014.csv'
16231 Year a double x Data suppressed due to small cell size '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2014.csv'

Parsed with column specification:
cols(
  .default = col_character(),
  Year = col_double()
)
See spec(...) for full column specifications.
Warning: 4 parsing failures.
  row  col expected                                          actual                                                                                                         file
16229 Year a double -------------------                             '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2015.csv'
16230 Year a double -  Data not available                           '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2015.csv'
16231 Year a double x Data suppressed due to small cell size        '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2015.csv'
16232 Year a double * Data flagged due to questionable data quality '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2015.csv'

Parsed with column specification:
cols(
  .default = col_character(),
  `2016` = col_double()
)
See spec(...) for full column specifications.
Warning: 4 parsing failures.
  row  col expected                                          actual                                                                                                         file
16227 2016 a double -------------------                             '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2016.csv'
16228 2016 a double -  Data not available                           '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2016.csv'
16229 2016 a double x Data suppressed due to small cell size        '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2016.csv'
16230 2016 a double * Data flagged due to questionable data quality '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2016.csv'

Parsed with column specification:
cols(
  .default = col_character(),
  Year = col_double()
)
See spec(...) for full column specifications.
Warning: 4 parsing failures.
  row  col expected                                          actual                                                                                                            file
16228 Year a double -------------------                             '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2017-18.csv'
16229 Year a double -  Data not available                           '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2017-18.csv'
16230 Year a double x Data suppressed due to small cell size        '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2017-18.csv'
16231 Year a double * Data flagged due to questionable data quality '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2017-18.csv'


  |                                                                            
  |............                                                          |  17%
  ordinary text without R code


  |                                                                            
  |............                                                          |  18%
label: check column names (with options) 
List of 1
 $ include: logi FALSE


  |                                                                            
  |.............                                                         |  19%
  ordinary text without R code


  |                                                                            
  |..............                                                        |  19%
label: check names with identical

  |                                                                            
  |..............                                                        |  20%
  ordinary text without R code


  |                                                                            
  |...............                                                       |  21%
label: check cols

  |                                                                            
  |...............                                                       |  22%
  ordinary text without R code


  |                                                                            
  |................                                                      |  23%
label: combine datasets 1

  |                                                                            
  |.................                                                     |  24%
  ordinary text without R code


  |                                                                            
  |.................                                                     |  25%
label: unnamed-chunk-3 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |..................                                                    |  26%
  ordinary text without R code


  |                                                                            
  |...................                                                   |  27%
label: 2016 dataset

  ordinary text without R code


  |                                                                            
  |....................                                                  |  28%
label: show filenamess (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |....................                                                  |  29%
  ordinary text without R code


  |                                                                            
  |.....................                                                 |  30%
label: pluck 2016 data

  |                                                                            
  |......................                                                |  31%
  ordinary text without R code


  |                                                                            
  |......................                                                |  32%
label: fix 2016 colnames (with options) 
List of 3
 $ echo   : logi FALSE
 $ message: logi FALSE
 $ warning: logi FALSE

Parsed with column specification:
cols(
  .default = col_character(),
  Year = col_double()
)
See spec(...) for full column specifications.
Warning: 4 parsing failures.
  row  col expected                                          actual                                                                                                         file
16228 Year a double -------------------                             '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2016.csv'
16229 Year a double -  Data not available                           '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2016.csv'
16230 Year a double x Data suppressed due to small cell size        '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2016.csv'
16231 Year a double * Data flagged due to questionable data quality '/Users/gvwilson/misc/data-science-in-education/data/longitudinal_data/bchildcountandedenvironments2016.csv'


  |                                                                            
  |.......................                                               |  33%
  ordinary text without R code


  |                                                                            
  |........................                                              |  34%
label: pick vars

  |                                                                            
  |........................                                              |  35%
  ordinary text without R code


  |                                                                            
  |.........................                                             |  35%
label: pick vars function

  |                                                                            
  |.........................                                             |  36%
  ordinary text without R code


  |                                                                            
  |..........................                                            |  37%
label: verify var names

  |                                                                            
  |...........................                                           |  38%
  ordinary text without R code


  |                                                                            
  |...........................                                           |  39%
label: combine datasets 2

  |                                                                            
  |............................                                          |  40%
  ordinary text without R code


  |                                                                            
  |............................                                          |  41%
label: check structure

  |                                                                            
  |.............................                                         |  42%
  ordinary text without R code


  |                                                                            
  |..............................                                        |  42%
label: unnamed-chunk-4 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |..............................                                        |  43%
  ordinary text without R code


  |                                                                            
  |...............................                                       |  44%
label: count disabilities

  |                                                                            
  |................................                                      |  45%
  ordinary text without R code


  |                                                                            
  |................................                                      |  46%
label: filter child_counts

  |                                                                            
  |.................................                                     |  47%
  ordinary text without R code


  |                                                                            
  |.................................                                     |  48%
label: rename vars

  |                                                                            
  |..................................                                    |  49%
  ordinary text without R code


  |                                                                            
  |...................................                                   |  50%
label: count states

  ordinary text without R code


  |                                                                            
  |....................................                                  |  51%
label: fix caps

  |                                                                            
  |.....................................                                 |  52%
  ordinary text without R code


  |                                                                            
  |.....................................                                 |  53%
label: pivot_longer gender col

  |                                                                            
  |......................................                                |  54%
  ordinary text without R code


  |                                                                            
  |......................................                                |  55%
label: replace gender values

  |                                                                            
  |.......................................                               |  56%
  ordinary text without R code


  |                                                                            
  |........................................                              |  57%
label: convert to numeric

  |                                                                            
  |........................................                              |  58%
  ordinary text without R code


  |                                                                            
  |.........................................                             |  58%
label: demo as.numeric

  |                                                                            
  |..........................................                            |  59%
  ordinary text without R code


  |                                                                            
  |..........................................                            |  60%
label: convert date

  |                                                                            
  |...........................................                           |  61%
  ordinary text without R code


  |                                                                            
  |...........................................                           |  62%
label: show NAs

  |                                                                            
  |............................................                          |  63%
  ordinary text without R code


  |                                                                            
  |.............................................                         |  64%
label: remove NAs

  |                                                                            
  |.............................................                         |  65%
  ordinary text without R code


  |                                                                            
  |..............................................                        |  65%
label: verify rows

  |                                                                            
  |..............................................                        |  66%
  ordinary text without R code


  |                                                                            
  |...............................................                       |  67%
label: filter dataset with top_n

  |                                                                            
  |................................................                      |  68%
  ordinary text without R code


  |                                                                            
  |................................................                      |  69%
label: filter most populated

  |                                                                            
  |.................................................                     |  70%
  ordinary text without R code


  |                                                                            
  |..................................................                    |  71%
label: fig10-1 (with options) 
List of 5
 $ results     : chr "hide"
 $ message     : logi FALSE
 $ warning     : symbol F
 $ fig.cap     : chr "Count of Female Students in Special Education Over Time"
 $ fig.showtext: logi TRUE


  |                                                                            
  |..................................................                    |  72%
  ordinary text without R code


  |                                                                            
  |...................................................                   |  73%
label: fig10-2 (with options) 
List of 4
 $ results     : chr "hide"
 $ message     : logi FALSE
 $ fig.cap     : chr "Count of Male Students in Special Education Over Time"
 $ fig.showtext: logi TRUE


  ordinary text without R code


  |                                                                            
  |....................................................                  |  74%
label: fig10-3 (with options) 
List of 4
 $ results     : chr "hide"
 $ message     : logi FALSE
 $ fig.cap     : chr "Total Count of Students in Special Education Over Time"
 $ fig.showtext: logi TRUE

`summarise()` regrouping output by 'year' (override with `.groups` argument)

  |                                                                            
  |.....................................................                 |  75%
  ordinary text without R code


  |                                                                            
  |.....................................................                 |  76%
label: fig10-4 (with options) 
List of 4
 $ results     : chr "hide"
 $ message     : logi FALSE
 $ fig.cap     : chr "Median Students with Disabilities Count"
 $ fig.showtext: logi TRUE

`summarise()` regrouping output by 'year' (override with `.groups` argument)

  |                                                                            
  |......................................................                |  77%
  ordinary text without R code


  |                                                                            
  |.......................................................               |  78%
label: fig10-5 (with options) 
List of 4
 $ results     : chr "hide"
 $ message     : logi FALSE
 $ fig.cap     : chr "Male Student to Female Student Ratio Over Time"
 $ fig.showtext: logi TRUE

`summarise()` regrouping output by 'year', 'state' (override with `.groups` argument)

  |                                                                            
  |.......................................................               |  79%
  ordinary text without R code


  |                                                                            
  |........................................................              |  80%
label: fig10-6 (with options) 
List of 4
 $ results     : chr "hide"
 $ message     : logi FALSE
 $ fig.cap     : chr "Comparison of Female Students to Male Students in Special Education"
 $ fig.showtext: logi TRUE

`geom_smooth()` using method = 'loess' and formula 'y ~ x'

  |                                                                            
  |........................................................              |  81%
  ordinary text without R code


  |                                                                            
  |.........................................................             |  81%
label: where does the gap start

  |                                                                            
  |..........................................................            |  82%
  ordinary text without R code


  |                                                                            
  |..........................................................            |  83%
label: fig10-7 (with options) 
List of 4
 $ results     : chr "hide"
 $ message     : logi FALSE
 $ fig.cap     : chr "Comparison of Female Students to Male Students with Disabilities"
 $ fig.showtext: logi TRUE


  |                                                                            
  |...........................................................           |  84%
  ordinary text without R code


  |                                                                            
  |...........................................................           |  85%
label: make model data

  |                                                                            
  |............................................................          |  86%
  ordinary text without R code


  |                                                                            
  |.............................................................         |  87%
label: check factor sample sizes

  |                                                                            
  |.............................................................         |  88%
  ordinary text without R code


  |                                                                            
  |..............................................................        |  88%
label: fig10-8 (with options) 
List of 4
 $ results     : chr "hide"
 $ message     : logi FALSE
 $ fig.cap     : chr "Male to Female Ratio Across Years (Jittered)"
 $ fig.showtext: logi TRUE


  |                                                                            
  |...............................................................       |  89%
  ordinary text without R code


  |                                                                            
  |...............................................................       |  90%
label: fit model for year predicting ratio

  |                                                                            
  |................................................................      |  91%
  ordinary text without R code


  |                                                                            
  |................................................................      |  92%
label: model summary

  |                                                                            
  |.................................................................     |  93%
  ordinary text without R code


  |                                                                            
  |..................................................................    |  94%
label: mean ratio

  |                                                                            
  |..................................................................    |  95%
  ordinary text without R code


  |                                                                            
  |...................................................................   |  96%
label: average female to male ratio

  |                                                                            
  |....................................................................  |  96%
  ordinary text without R code


  |                                                                            
  |....................................................................  |  97%
label: median ratio

  |                                                                            
  |..................................................................... |  98%
  ordinary text without R code


  |                                                                            
  |..................................................................... |  99%
label: fig10-9 (with options) 
List of 4
 $ results     : chr "hide"
 $ message     : logi FALSE
 $ fig.cap     : chr "Median Male and Female Student Counts in Special Education"
 $ fig.showtext: logi TRUE


  |                                                                            
  |......................................................................| 100%
  ordinary text without R code


output file: 10-wt-longitudinal-analysis.knit.md

There were 50 or more warnings (use warnings() to see the first 50)


processing file: 11-wt-text-analysis.Rmd

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |.                                                                     |   2%
  ordinary text without R code


  |                                                                            
  |...                                                                   |   4%
label: load packages (with options) 
List of 2
 $ message: symbol F
 $ warning: symbol F

── Attaching packages ─────────────────────────────────────── tidyverse 1.2.1 ──
✔ ggplot2 3.3.0.9000     ✔ purrr   0.3.3     
✔ tibble  3.0.0          ✔ dplyr   1.0.0     
✔ tidyr   1.0.0          ✔ stringr 1.4.0     
✔ readr   1.3.1          ✔ forcats 0.4.0     
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
here() starts at /Users/gvwilson/misc/data-science-in-education

  |                                                                            
  |....                                                                  |   6%
  ordinary text without R code


  |                                                                            
  |......                                                                |   9%
label: read data

  |                                                                            
  |.......                                                               |  11%
  ordinary text without R code


  |                                                                            
  |.........                                                             |  13%
label: pick columns

  |                                                                            
  |..........                                                            |  15%
  ordinary text without R code


  |                                                                            
  |............                                                          |  17%
label: tokenize data

  |                                                                            
  |.............                                                         |  19%
  ordinary text without R code


  |                                                                            
  |...............                                                       |  21%
label: remove stop words

  |                                                                            
  |................                                                      |  23%
  ordinary text without R code


  |                                                                            
  |..................                                                    |  26%
label: count words

  |                                                                            
  |...................                                                   |  28%
  ordinary text without R code


  |                                                                            
  |.....................                                                 |  30%
label: count words as percentage

  |                                                                            
  |......................                                                |  32%
  ordinary text without R code


  |                                                                            
  |........................                                              |  34%
label: install textdata (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |.........................                                             |  36%
  ordinary text without R code


  |                                                                            
  |...........................                                           |  38%
label: view nrc

  |                                                                            
  |............................                                          |  40%
  ordinary text without R code


  |                                                                            
  |..............................                                        |  43%
label: count positive words

  |                                                                            
  |...............................                                       |  45%
  ordinary text without R code


  |                                                                            
  |.................................                                     |  47%
label: fig11-1 (with options) 
List of 4
 $ results     : chr "hide"
 $ message     : logi FALSE
 $ fig.cap     : chr "Count of Words Associated with Positivity"
 $ fig.showtext: logi TRUE


  |                                                                            
  |..................................                                    |  49%
  ordinary text without R code


  |                                                                            
  |....................................                                  |  51%
label: status_id with dataviz

  |                                                                            
  |.....................................                                 |  53%
  ordinary text without R code


  |                                                                            
  |.......................................                               |  55%
label: just status_id

  |                                                                            
  |........................................                              |  57%
  ordinary text without R code


  |                                                                            
  |..........................................                            |  60%
label: status_id with positive words

  |                                                                            
  |...........................................                           |  62%
  ordinary text without R code


  |                                                                            
  |.............................................                         |  64%
label: just status_id 2

  |                                                                            
  |..............................................                        |  66%
  ordinary text without R code


  |                                                                            
  |................................................                      |  68%
label: using distinct

  |                                                                            
  |.................................................                     |  70%
  ordinary text without R code


  |                                                                            
  |...................................................                   |  72%
label: using distinct 2

  |                                                                            
  |....................................................                  |  74%
  ordinary text without R code


  |                                                                            
  |......................................................                |  77%
label: dataviz tweets with positive variable

  |                                                                            
  |.......................................................               |  79%
  ordinary text without R code


  |                                                                            
  |.........................................................             |  81%
label: percent that had a positive word

  |                                                                            
  |..........................................................            |  83%
  ordinary text without R code


  |                                                                            
  |............................................................          |  85%
label: positive tweets

  |                                                                            
  |.............................................................         |  87%
  ordinary text without R code


  |                                                                            
  |...............................................................       |  89%
label: first and third tweet

  |                                                                            
  |................................................................      |  91%
  ordinary text without R code


  |                                                                            
  |..................................................................    |  94%
label: unnamed-chunk-1

  |                                                                            
  |...................................................................   |  96%
  ordinary text without R code


  |                                                                            
  |..................................................................... |  98%
label: randomly review

  |                                                                            
  |......................................................................| 100%
  ordinary text without R code


output file: 11-wt-text-analysis.knit.md

There were 50 or more warnings (use warnings() to see the first 50)


processing file: 12-wt-social-network-analysis.Rmd

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |..                                                                    |   3%
  ordinary text without R code


  |                                                                            
  |....                                                                  |   5%
label: unnamed-chunk-1 (with options) 
List of 2
 $ message: symbol F
 $ warning: symbol F

── Attaching packages ─────────────────────────────────────── tidyverse 1.2.1 ──
✔ ggplot2 3.3.0.9000     ✔ purrr   0.3.3     
✔ tibble  3.0.0          ✔ dplyr   1.0.0     
✔ tidyr   1.0.0          ✔ stringr 1.4.0     
✔ readr   1.3.1          ✔ forcats 0.4.0     
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()

Attaching package: 'rtweet'

The following object is masked from 'package:purrr':

    flatten


Attaching package: 'tidygraph'

The following object is masked from 'package:stats':

    filter


  |                                                                            
  |.....                                                                 |   8%
  ordinary text without R code


  |                                                                            
  |.......                                                               |  10%
label: unnamed-chunk-2 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |.........                                                             |  13%
  ordinary text without R code


  |                                                                            
  |...........                                                           |  15%
label: unnamed-chunk-3 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |.............                                                         |  18%
  ordinary text without R code


  |                                                                            
  |..............                                                        |  21%
label: unnamed-chunk-4 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |................                                                      |  23%
  ordinary text without R code


  |                                                                            
  |..................                                                    |  26%
label: unnamed-chunk-5

  |                                                                            
  |....................                                                  |  28%
  ordinary text without R code


  |                                                                            
  |......................                                                |  31%
label: unnamed-chunk-6

  |                                                                            
  |.......................                                               |  33%
  ordinary text without R code


  |                                                                            
  |.........................                                             |  36%
label: unnamed-chunk-7 (with options) 
List of 1
 $ include: logi FALSE


  |                                                                            
  |...........................                                           |  38%
  ordinary text without R code


  |                                                                            
  |.............................                                         |  41%
label: unnamed-chunk-8 (with options) 
List of 1
 $ echo: logi FALSE


  |                                                                            
  |...............................                                       |  44%
  ordinary text without R code


  |                                                                            
  |................................                                      |  46%
label: unnamed-chunk-9

  |                                                                            
  |..................................                                    |  49%
  ordinary text without R code


  |                                                                            
  |....................................                                  |  51%
label: unnamed-chunk-10

  |                                                                            
  |......................................                                |  54%
  ordinary text without R code


  |                                                                            
  |.......................................                               |  56%
label: unnamed-chunk-11

  |                                                                            
  |.........................................                             |  59%
  ordinary text without R code


  |                                                                            
  |...........................................                           |  62%
label: unnamed-chunk-12

  |                                                                            
  |.............................................                         |  64%
  ordinary text without R code


  |                                                                            
  |...............................................                       |  67%
label: unnamed-chunk-13

  |                                                                            
  |................................................                      |  69%
  ordinary text without R code


  |                                                                            
  |..................................................                    |  72%
label: unnamed-chunk-14

  |                                                                            
  |....................................................                  |  74%
  ordinary text without R code


  |                                                                            
  |......................................................                |  77%
label: unnamed-chunk-15

  |                                                                            
  |........................................................              |  79%
  ordinary text without R code


  |                                                                            
  |.........................................................             |  82%
label: unnamed-chunk-16

  |                                                                            
  |...........................................................           |  85%
  ordinary text without R code


  |                                                                            
  |.............................................................         |  87%
label: fig12-1 (with options) 
List of 1
 $ fig.cap: chr "Network Graph"


  |                                                                            
  |...............................................................       |  90%
  ordinary text without R code


  |                                                                            
  |.................................................................     |  92%
label: unnamed-chunk-17 (with options) 
List of 3
 $ echo   : logi FALSE
 $ message: symbol F
 $ warning: symbol F


  |                                                                            
  |..................................................................    |  95%
  ordinary text without R code


  |                                                                            
  |....................................................................  |  97%
label: fig12-2 (with options) 
List of 1
 $ fig.cap: chr "Network Graph with Centrality"


  |                                                                            
  |......................................................................| 100%
  ordinary text without R code


output file: 12-wt-social-network-analysis.knit.md

Warning messages:
1: package 'tibble' was built under R version 3.6.2 
2: package 'dplyr' was built under R version 3.6.2 
3: package 'tidygraph' was built under R version 3.6.2 
4: package 'ggraph' was built under R version 3.6.2 


processing file: 13-wt-multilevel-models.Rmd

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |.                                                                     |   2%
  ordinary text without R code


  |                                                                            
  |...                                                                   |   4%
label: load packages (with options) 
List of 2
 $ message: symbol F
 $ warning: symbol F

── Attaching packages ─────────────────────────────────────── tidyverse 1.2.1 ──
✔ ggplot2 3.3.0.9000     ✔ purrr   0.3.3     
✔ tibble  3.0.0          ✔ dplyr   1.0.0     
✔ tidyr   1.0.0          ✔ stringr 1.4.0     
✔ readr   1.3.1          ✔ forcats 0.4.0     
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
dummies-1.5.6 provided by Decision Patterns

Loading required package: Matrix

Attaching package: 'Matrix'

The following objects are masked from 'package:tidyr':

    expand, pack, unpack


Attaching package: 'lme4'

The following object is masked from 'package:dummies':

    dummy


  |                                                                            
  |....                                                                  |   6%
  ordinary text without R code


  |                                                                            
  |......                                                                |   9%
label: iris

  |                                                                            
  |.......                                                               |  11%
  ordinary text without R code


  |                                                                            
  |.........                                                             |  13%
label: iris levels

  |                                                                            
  |..........                                                            |  15%
  ordinary text without R code


  |                                                                            
  |............                                                          |  17%
label: run dummy on species

  |                                                                            
  |.............                                                         |  19%
  ordinary text without R code


  |                                                                            
  |...............                                                       |  21%
label: add dummy coded variables to iris

  |                                                                            
  |................                                                      |  23%
  ordinary text without R code


  |                                                                            
  |..................                                                    |  26%
label: count species

  |                                                                            
  |...................                                                   |  28%
  ordinary text without R code


  |                                                                            
  |.....................                                                 |  30%
label: unnamed-chunk-1 (with options) 
List of 2
 $ message: symbol F
 $ warning: symbol F


  |                                                                            
  |......................                                                |  32%
  ordinary text without R code


  |                                                                            
  |........................                                              |  34%
label: count classes

  |                                                                            
  |.........................                                             |  36%
  ordinary text without R code


  |                                                                            
  |...........................                                           |  38%
label: unnamed-chunk-2

  |                                                                            
  |............................                                          |  40%
  ordinary text without R code


  |                                                                            
  |..............................                                        |  43%
label: fit model for course on time spent

  |                                                                            
  |...............................                                       |  45%
  ordinary text without R code


  |                                                                            
  |.................................                                     |  47%
label: show results of m_linear_dc

  |                                                                            
  |..................................                                    |  49%
  ordinary text without R code


  |                                                                            
  |....................................                                  |  51%
label: unnamed-chunk-3 (with options) 
List of 2
 $ echo   : logi FALSE
 $ results: chr "hide"


  |                                                                            
  |.....................................                                 |  53%
  ordinary text without R code


  |                                                                            
  |.......................................                               |  55%
label: relevel course_id

  |                                                                            
  |........................................                              |  57%
  ordinary text without R code


  |                                                                            
  |..........................................                            |  60%
label: fit model with new course level

  |                                                                            
  |...........................................                           |  62%
  ordinary text without R code


  |                                                                            
  |.............................................                         |  64%
label: unnamed-chunk-4 (with options) 
List of 2
 $ echo   : logi FALSE
 $ results: chr "hide"


  |                                                                            
  |..............................................                        |  66%
  ordinary text without R code


  |                                                                            
  |................................................                      |  68%
label: same model but without intercept

  |                                                                            
  |.................................................                     |  70%
  ordinary text without R code


  |                                                                            
  |...................................................                   |  72%
label: unnamed-chunk-5 (with options) 
List of 2
 $ echo   : logi FALSE
 $ results: chr "hide"


  |                                                                            
  |....................................................                  |  74%
  ordinary text without R code


  |                                                                            
  |......................................................                |  77%
label: fit multilevel model

  |                                                                            
  |.......................................................               |  79%
  ordinary text without R code


  |                                                                            
  |.........................................................             |  81%
label: unnamed-chunk-6

  |                                                                            
  |..........................................................            |  83%
  ordinary text without R code


  |                                                                            
  |............................................................          |  85%
label: unnamed-chunk-7 (with options) 
List of 2
 $ echo   : logi FALSE
 $ results: chr "hide"


  |                                                                            
  |.............................................................         |  87%
  ordinary text without R code


  |                                                                            
  |...............................................................       |  89%
label: install performance (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |................................................................      |  91%
  ordinary text without R code


  |                                                                            
  |..................................................................    |  94%
label: ICC (with options) 
List of 1
 $ eval: logi TRUE


  |                                                                            
  |...................................................................   |  96%
  ordinary text without R code


  |                                                                            
  |..................................................................... |  98%
label: school_id example (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |......................................................................| 100%
  ordinary text without R code


output file: 13-wt-multilevel-models.knit.md

Warning messages:
1: package 'tibble' was built under R version 3.6.2 
2: package 'dplyr' was built under R version 3.6.2 
3: package 'performance' was built under R version 3.6.2 


processing file: 14-wt-machine-learning.Rmd

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |..                                                                    |   3%
  ordinary text without R code


  |                                                                            
  |....                                                                  |   5%
label: unnamed-chunk-1 (with options) 
List of 2
 $ message: logi FALSE
 $ warning: logi FALSE

── Attaching packages ─────────────────────────────────────── tidyverse 1.2.1 ──
✔ ggplot2 3.3.0.9000     ✔ purrr   0.3.3     
✔ tibble  3.0.0          ✔ dplyr   1.0.0     
✔ tidyr   1.0.0          ✔ stringr 1.4.0     
✔ readr   1.3.1          ✔ forcats 0.4.0     
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
Loading required package: lattice

Attaching package: 'caret'

The following object is masked from 'package:purrr':

    lift


Attaching package: 'tidylog'

The following objects are masked from 'package:dplyr':

    add_count, add_tally, anti_join, count, distinct, distinct_all,
    distinct_at, distinct_if, filter, filter_all, filter_at, filter_if,
    full_join, group_by, group_by_all, group_by_at, group_by_if,
    inner_join, left_join, mutate, mutate_all, mutate_at, mutate_if,
    rename, rename_all, rename_at, rename_if, right_join, sample_frac,
    sample_n, select, select_all, select_at, select_if, semi_join,
    slice, summarise, summarise_all, summarise_at, summarise_if,
    summarize, summarize_all, summarize_at, summarize_if, tally,
    top_frac, top_n, transmute, transmute_all, transmute_at,
    transmute_if, ungroup

The following objects are masked from 'package:tidyr':

    drop_na, fill, gather, pivot_longer, pivot_wider, replace_na,
    spread, uncount

The following object is masked from 'package:stats':

    filter


  |                                                                            
  |.....                                                                 |   8%
  ordinary text without R code


  |                                                                            
  |.......                                                               |  10%
label: unnamed-chunk-2

  |                                                                            
  |.........                                                             |  13%
  ordinary text without R code


  |                                                                            
  |...........                                                           |  15%
label: unnamed-chunk-3 (with options) 
List of 1
 $ eval: logi FALSE


  |                                                                            
  |.............                                                         |  18%
  ordinary text without R code


  |                                                                            
  |..............                                                        |  21%
label: unnamed-chunk-4

  |                                                                            
  |................                                                      |  23%
  ordinary text without R code


  |                                                                            
  |..................                                                    |  26%
label: check rows

  |                                                                            
  |....................                                                  |  28%
  ordinary text without R code


  |                                                                            
  |......................                                                |  31%
label: remove rows with NAs

  |                                                                            
  |.......................                                               |  33%
  ordinary text without R code


  |                                                                            
  |.........................                                             |  36%
label: check rows again

  |                                                                            
  |...........................                                           |  38%
  ordinary text without R code


  |                                                                            
  |.............................                                         |  41%
label: unnamed-chunk-5

  |                                                                            
  |...............................                                       |  44%
  ordinary text without R code


  |                                                                            
  |................................                                      |  46%
label: unnamed-chunk-6

  |                                                                            
  |..................................                                    |  49%
  ordinary text without R code


  |                                                                            
  |....................................                                  |  51%
label: unnamed-chunk-7

  |                                                                            
  |......................................                                |  54%
  ordinary text without R code


  |                                                                            
  |.......................................                               |  56%
label: unnamed-chunk-8

  |                                                                            
  |.........................................                             |  59%
  ordinary text without R code


  |                                                                            
  |...........................................                           |  62%
label: unnamed-chunk-9
Quitting from lines 284-294 (14-wt-machine-learning.Rmd) 
Error: Required package is missing
In addition: Warning messages:
1: package 'tibble' was built under R version 3.6.2 
2: package 'dplyr' was built under R version 3.6.2 
3: package 'tidylog' was built under R version 3.6.2 

Execution halted
Error in Rscript_render(f, render_args, render_meta, add1, add2) : 
  Failed to compile 14-wt-machine-learning.Rmd
Calls: <Anonymous> -> render_new_session -> Rscript_render
Execution halted

@ivelasq
Copy link
Collaborator

ivelasq commented Jun 3, 2020

Hi @gvwilson ! I think we're almost there! I suspect that the missing package is the {ranger} package - could you install and let us know how it goes? Thanks!

@gvwilson
Copy link
Author

gvwilson commented Jun 3, 2020

Hi @ivelasq - ranger was the 4th package I installed this morning before getting as far as the error above (the list's at the top of my post). Thanks - Greg

@ivelasq
Copy link
Collaborator

ivelasq commented Jun 3, 2020

Hi @gvwilson , could you please try with the {randomForest} package installed whenever you get the chance?

Another thought is that maybe the {ranger} library needs to be called in the RMarkdown file - that wasn't the case when we rendered it in the past, though.

Thanks!

@gvwilson
Copy link
Author

gvwilson commented Jun 3, 2020

I have installed randomForest, and now get this error at the end of the output:

label: unnamed-chunk-9
Quitting from lines 284-294 (14-wt-machine-learning.Rmd) 
Error: Required package is missing
In addition: Warning messages:
1: package 'tibble' was built under R version 3.6.2 
2: package 'dplyr' was built under R version 3.6.2 
3: package 'tidylog' was built under R version 3.6.2 

Execution halted
Error in Rscript_render(f, render_args, render_meta, add1, add2) : 
  Failed to compile 14-wt-machine-learning.Rmd
Calls: <Anonymous> -> render_new_session -> Rscript_render
Execution halted

@gvwilson
Copy link
Author

Made some more progress but am still blocked:

  1. Got past previous error using install.packages('e1071').

  2. However, final output of _build.sh is now:

processing file: _main.Rmd
  |......................................................................| 100%
  ordinary text without R code

output file: _main.knit.md

/anaconda3/bin/pandoc +RTS -K512m -RTS _main.utf8.md --to html4 --from markdown+autolink_bare_uris+tex_math_single_backslash --output _main.html --email-obfuscation none --wrap preserve --csl apa_pl.csl --standalone --section-divs --table-of-contents --toc-depth 3 --template /Library/Frameworks/R.framework/Versions/3.6/Resources/library/bookdown/templates/gitbook.html --highlight-style pygments --number-sections --css css/style.css --include-in-header /var/folders/cg/b541v521215207m3fnkzd77w0000gn/T//Rtmppc7SZX/rmarkdown-str26e6dd78879.html --mathjax --lua-filter /Library/Frameworks/R.framework/Versions/3.6/Resources/library/rmarkdown/rmd/lua/pagebreak.lua --lua-filter /Library/Frameworks/R.framework/Versions/3.6/Resources/library/rmarkdown/rmd/lua/latex-div.lua --include-in-header google_analytics.html --filter /anaconda3/bin/pandoc-citeproc 
pandoc-citeproc: reference R-tabulizer not found
pandoc-citeproc: reference R-rJava not found
pandoc-citeproc: reference R-amen not found
pandoc-citeproc: reference paris2017culturallya not found
pandoc-citeproc: reference R-amen not found
pandoc-citeproc: reference R-ergm not found
pandoc-citeproc: reference R-statnet not found

Output created: _book/index.html
[1] "/Users/gvwilson/misc/data-science-in-education/_book/index.html"
Rscript -e "bookdown::render_book('index.Rmd', 'bookdown::pdf_book')"


processing file: index.Rmd
  |..............                                                        |  20%
  ordinary text without R code

  |............................                                          |  40%
Quitting from lines 19-39 (index.Rmd) 
Error in options[[sprintf("fig.%s", i)]] * options$dpi : 
  non-numeric argument to binary operator
Calls: local ... process_group.block -> call_block -> fix_options -> %n%

Execution halted
Error in Rscript_render(f, render_args, render_meta, add1, add2) : 
  Failed to compile index.Rmd
Calls: <Anonymous> -> render_new_session -> Rscript_render
Execution halted

I edited before_script.R to change the dpi value from the string "300" to the integer 300. That got me as far as:

label: fig12-2 (with options) 
List of 1
 $ fig.cap: chr "Network Graph with Centrality"

Quitting from lines 269-278 (12-wt-social-network-analysis.Rmd) 
Error in grid.Call.graphics(C_text, as.graphicsAnnot(x$label), x$x, x$y,  : 
  invalid font type
Calls: local ... drawDetails -> drawDetails.text -> grid.Call.graphics
In addition: There were 42 warnings (use warnings() to see them)

Execution halted
Error in Rscript_render(f, render_args, render_meta, add1, add2) : 
  Failed to compile 12-wt-social-network-analysis.Rmd
Calls: <Anonymous> -> render_new_session -> Rscript_render
Execution halted

@restrellado
Copy link
Collaborator

Hi Greg! Going to try a different approach–I'll do a fresh clone and see if I can reproduce it too. More soon!

@restrellado
Copy link
Collaborator

Hi again! Ok so we were able to get it to render after downloading a fresh clone of the repo. The only changes we had to make were installing packages I didn't have. We used dataedu::dataedu_packages() to do that. We also had to install {png}, {RefManageR}, and {e1071}. But after all that, it rendered successfully. Here's my session info:

R version 4.0.0 (2020-04-24)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.5
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_4.0.0  bookdown_0.19   htmltools_0.4.0 tools_4.0.0     yaml_2.2.1     
 [6] Rcpp_1.0.4.6    rmarkdown_2.1   knitr_1.28      xfun_0.14       digest_0.6.25  
[11] rlang_0.4.6     evaluate_0.14

@ivelasq did a little more research and thinks it might be a missing Arial Narrow font, based on another similar issue she found. I'll let Isabella explain the thing she thought you could try. Take it away @ivelasq!

@ivelasq
Copy link
Collaborator

ivelasq commented Jun 29, 2020

Thanks Ryan! Hi Greg, thanks for the update. Like Ryan said, I found this issue where it states that Arial Narrow was missing, which was causing the problem. They download it using {extrafont}. Could you please try that, and let us know if it works?
thomasp85/ggraph#152

I actually hadn't noticed, but I was missing this font as well! For some reason, my render still went through but it did give me a bunch of warnings: https://datascienceineducation.com/c12.html#plotting-the-network
So, I will try it on my end too!

Greg, one more note - it seems like previously, you were able to get past chapter 12 (as the {e1701} installation fixed something in chapter 14). If there's anything that has changed since then that could help us figure out what is happening in chapter 12, please let us know!

Thanks!

@gvwilson
Copy link
Author

Thanks for the feedback - here's where I've gotten to:

Re-run `devtools::install_github('data-edu/dataedu')

Note: maybe add a section in Chapter 2 on installation instructions, either standalone or a forward ref to Section 5.7? O'Reilly books have conditioned me to look for installation instructions early on, and I think other instructors might as well.

sessionInfo()

R version 3.6.0 (2019-04-26)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.6

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

locale:
[1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8

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

other attached packages:
[1] dataedu_0.1.0

loaded via a namespace (and not attached):
[1] compiler_3.6.0 showtext_0.8-1 showtextdb_3.0 sysfonts_0.8.1 proto_1.0.0 

dataedu

> library(dataedu)
> dataedu::dataedu_packages # note: a variable, not a function call
 [1] "apaTables"   "caret"       "dummies"     "e1071"       "ggraph"     
 [6] "here"        "janitor"     "lme4"        "lubridate"   "performance"
[11] "ranger"      "readxl"      "rtweet"      "randomNames" "sjPlot"     
[16] "textdata"    "tidygraph"   "tidylog"     "tidyverse"   "tidytext" 

Build HTML version.

  • The first command in _build.sh is Rscript -e "bookdown::render_book('index.Rmd', 'bookdown::gitbook')".
  • It runs to completion and produces _book/index.html.

Build PDF version.

  • The second command in _build.sh is Rscript -e "bookdown::render_book('index.Rmd', 'bookdown::pdf_book')".
  • It fails. The last few lines of output are:
label: fig12-1 (with options) 
List of 1
 $ fig.cap: chr "Network Graph"

  |...............................................................       |  90%
  ordinary text without R code

  |.................................................................     |  92%
label: unnamed-chunk-17 (with options) 
List of 3
 $ echo   : logi FALSE
 $ message: symbol F
 $ warning: symbol F

  |..................................................................    |  95%
  ordinary text without R code

  |....................................................................  |  97%
label: fig12-2 (with options) 
List of 1
 $ fig.cap: chr "Network Graph with Centrality"

Quitting from lines 269-278 (12-wt-social-network-analysis.Rmd) 
Error in grid.Call.graphics(C_text, as.graphicsAnnot(x$label), x$x, x$y,  : 
  invalid font type
Calls: local ... drawDetails -> drawDetails.text -> grid.Call.graphics
In addition: There were 42 warnings (use warnings() to see them)

Execution halted
Error in Rscript_render(f, render_args, render_meta, add1, add2) : 
  Failed to compile 12-wt-social-network-analysis.Rmd
Calls: <Anonymous> -> render_new_session -> Rscript_render
Execution halted

Related

  • This is with the change to before_script.R (integer value for dpi instead of string value).
  • I have extrafont installed:
> library(extrafont)
Registering fonts with R
  • extrafont::loadfonts() runs without any warnings.

@ivelasq
Copy link
Collaborator

ivelasq commented Jul 1, 2020

Thanks Greg! Closing issue now.

@ivelasq ivelasq closed this as completed Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants