No implicit conversion of Hash into Array when trying to submit RStudio or Matlab session

I found that I had to use different formatting altogether to get things working for me. I was also getting the above error while troubleshooting. This thread has my solution that may be helpful for someone in the future: