Watts-College / cpp-527-spr-2022

https://watts-college.github.io/cpp-527-spr-2022/
0 stars 1 forks source link

Final Project #33

Closed jacobtnyoung closed 2 years ago

jacobtnyoung commented 2 years ago

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 commented 2 years ago

HI Jacob.

Are the files saved in your working directory? Did you change the working directory to be the same location as your file?

On Wed, Feb 23, 2022 at 10:17 AM jacobtnyoung @.***> wrote:

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!

— Reply to this email directly, view it on GitHub https://github.com/Watts-College/cpp-527-spr-2022/issues/33, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4EHB3DIUH4UJBIVI2L7FDU4UJCJANCNFSM5PE7TSRA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

jacobtnyoung commented 2 years ago

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 commented 2 years ago

Let me do some digging and I'll get back to you

On Wed, Feb 23, 2022 at 11:08 AM jacobtnyoung @.***> wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/Watts-College/cpp-527-spr-2022/issues/33#issuecomment-1049064704, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4EHBZXX2NHKKPKVGGZTXLU4UPALANCNFSM5PE7TSRA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

jacobtnyoung commented 2 years ago

Thanks.

jacobtnyoung commented 2 years ago

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

params:
  url:
    value: x   

This fixed it!