When applying a function to each element of a list using l_ply
, how can I generate an output showing me the number of the element of the list the function is momentarily applied to?
It's similar to a progress bar (l_dply(list, function, .progress = progress_text(char = '*'))
, but what I'd like is an indicator of the position of the element in the list currently being processed by the function.
For example, if my list has 100 elements, I would like output from 1 to 100 for each iteration the function is applied.
I am using l_ply
with a downloader function, so my ultimate goal is to be able to find out for which list element the download did not work.