Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in R Programming by (50.2k points)

This is my crontab:

image

It is assumed that my script on R saves csv on my directory.

write.csv(raw_data, paste0("/Users/marianafernandez/Desktop/prueba/data-raw/database_pulls/raw_data/raw_data_", Sys.Date(), ".csv"), na = "", row.names = F)

If I execute that on my terminal: R Script scraping.R everything goes fine. But when I try to do my cronjob is not working.

1 Answer

0 votes
by (108k points)

I think in R programming, you need to put the path to the Rscript in front of its path/to/Rscript and it will correct the problem...that worked for me.

Related questions

Browse Categories

...