bnosac / taskscheduleR

Schedule R scripts/processes with the Windows task scheduler.
330 stars 72 forks source link

Silence Warning #95

Open msgoussi opened 1 year ago

msgoussi commented 1 year ago

When i run this code

taskscheduler_ls

i get this warning: Warning message: In data.table::fread(f, encoding = encoding, ...) : Found and resolved improper quoting in first 100 rows. If the fields are not quoted (e.g. field separator does not appear within any field), try quote="" to avoid this warning.

Please advise.

jwijffels commented 1 year ago

The package uses data.table::fread to read the output from schtasks /Query /FO CSV /V and falls back to utils::read.csv in case the fread would fail. The message indicates fread solved improper quoting of the csv file outputted by schtasks

https://github.com/bnosac/taskscheduleR/blob/master/R/taskscheduleR.R#L20

What does the output of taskscheduler_ls() look like for you?