taskscheduleR icon indicating copy to clipboard operation
taskscheduleR copied to clipboard

Silence Warning

Open msgoussi opened this issue 2 years ago • 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.

msgoussi avatar Nov 02 '22 03:11 msgoussi

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?

jwijffels avatar Nov 02 '22 11:11 jwijffels