Need serious help - inherited an R script and I don't program or do this for a living

FAQ: What's a reproducible example (`reprex`) and how do I do one? will make it possible for community members to help. Otherwise, we're speculating on too much to be really useful.