bnosac/taskscheduleR

Silence Warning

msgoussi opened this issue · 1 comments

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.

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?