Skip to content
R for the Rest of Us Logo

This lesson is locked

Get access to all lessons in this course.

Transcript

Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.

Your Turn

Take a look at your data in the following ways:

  1. In the console by typing penguins_data

  2. Using the glimpse() function

  3. With the RStudio viewer (or using the view() function)

  4. With one of the functions I showed from the packages that I demonstrated:

    • skim() from the skimr package

    • tbl_summary() from the gtsummary package

    • makeDataReport() from the dataReporter package

    • scan_data() from the pointblank package

Have any questions? Put them below and we will help you out!

You need to be signed-in to comment on this post. Login.

Brittany Ripper

Brittany Ripper

September 14, 2023

This is the text that was generated after I identified the library and typed the "makeDataReport" function. A word file was generated instead of a pdf as shown in the video. Was there a problem with my code?

> library(dataReporter)

Attaching package: ‘dataReporter’

The following object is masked from ‘package:dplyr’:

    summarize

> makeDataReport(penguins_data)
The default of 'doScale' is FALSE now for stability;
  set options(mc_doScale_quiet=TRUE) to suppress this (once per session) message
Data report generation is finished. Please wait while your output file is being rendered.


 Is dataReporter_penguins_data.docx open on your computer? Please close it as fast as possible to avoid problems!

Nothing wrong with your code! I don't know why it generated a Word document for you (to be honest, I never personally use the dataReporter package). However, it looks like there is an output argument you can use to change the output format. This will produce a PDF:

makeDataReport(penguins_data, output = "pdf")

Let me know if that helps!

I had the same issue, and inserted output = "pdf" and got this error. Perhaps it's because I don't have a LaTex viewer on my computer?

library(dataReporter) makeDataReport(penguins_data, output = "pdf") Data report generation is finished. Please wait while your output file is being rendered.

Is dataReporter_penguins_data.pdf open on your computer? Please close it as fast as possible to avoid problems!

Error: LaTeX failed to compile dataReporter_penguins_data.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. In addition: Warning message: In system2(..., stdout = if (use_file_stdout()) f1 else FALSE, stderr = f2) : '"pdflatex"' not found

Yes, I think that's right.

Jessica France

Jessica France

September 14, 2023

Hello David. After using the scan_data function, I get this message

"Error: The `interactions` and `correlations` sections require the ggforce package:
* It can be installed with `install.packages("ggforce")`." 

This seems to imply that I install the ggforce package first. Since you did not mention anything about a ggforce package, I do no know if this poses as a problem. Thanks.

Sorry, I didn't realize you would need to install another package. Yes, you can install it safely!

Jessica France

Jessica France

September 18, 2023

Thank you!

When I ran the scan with pointblank, I got an error message saying the "interactions" and "correlations" requires the ggforce package. I installed that, so I was able to move forward, but not sure if that signifies a wrong step somewhere else, or something else going on. Here's the output:

library(pointblank) scan_data(penguins_data) Error: The interactions and correlations sections require the ggforce package:

  • It can be installed with install.packages("ggforce").

I didn't realize this when I made the video, but it seems like you need to also install the ggforce package to use pointblank. You can do that by running install.packages("ggforce") in the console. Let me know if that solves your problem!