re-tested on R version 4.4.1 script runs without error, but fails to write anything to the `match` column of the output