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

Mutate Each Warnings Prevent Automation #11

Open
DamonWoods opened this issue May 22, 2018 · 2 comments
Open

Mutate Each Warnings Prevent Automation #11

DamonWoods opened this issue May 22, 2018 · 2 comments

Comments

@DamonWoods
Copy link

Whether I run the get_current_Forecast or the get_forecast_for function, I end up with the following warnings:

mutate_each() is deprecated.
Use mutate_all(), mutate_at() or mutate_if() instead.
To map funs over a selection of variables, use mutate_at()

These are the only warnings that appear, and while I can still write a *.csv when I run this once in RStudio, these warnings prevent the writing of a *.csv any time I try to automate the process using Windows Task Scheduler. Is there a solution that avoids these warning errors?

@DamonWoods
Copy link
Author

Investigating further, it appears that the failure may be due to the script not receiving my API key. The script runs when I explicitly define the API key in my Rscript when I run the full script in RStudio. However, for whatever reason, this line is not picked up when I try to run task scheduler. Instead it tries to get it from the environment.

In my R-script where I try to run my get_forecast function, I have an earlier line that is:
env <- Sys.getenv("FORECASTIO_API_KEY")

I have created a file called ".Renviron" and saved it to my User/Documents/R folder. In that file I only have the line FORECASTIO_API_KEY=myuniquekey123

Where am I going wrong?

@hrbrmstr
Copy link
Owner

Can you try the github version? There are no dplyr dependencies in 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