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

Final Project #33

Closed
jacobtnyoung opened this issue Feb 23, 2022 · 5 comments
Closed

Final Project #33

jacobtnyoung opened this issue Feb 23, 2022 · 5 comments

Comments

@jacobtnyoung
Copy link

In the instructions for the final project it says:

"Before you go on to next steps, download these three files do your local working directory. Open batch.R in a regular R console and try running the reports to create the HTML files."

When I run the batch.R file, I get the following error:

Quitting from lines 15-47 (salary-report.rmd)
Error in eval(expr, envir, enclos) : object 'params' not found

When I look at line 15, it is a call to the url that is defined in the render() function.

My question is whether these files should work as they are posted on the instructions page. Thanks!

@Dselby86
Copy link
Collaborator

Dselby86 commented Feb 23, 2022 via email

@jacobtnyoung
Copy link
Author

I did. The problem is with the URL <- params$url command in the .Rmd file. Although params is identified in the batch.R file, it doesn't seem to be creating the object.

@Dselby86
Copy link
Collaborator

Dselby86 commented Feb 23, 2022 via email

@jacobtnyoung
Copy link
Author

Thanks.

@jacobtnyoung
Copy link
Author

I figured it out. I didn't have the YAML header set up.

params:
  url:
    value: x   

This fixed it!

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

2 participants