So I got the code working, but found two issues...
- One are that dates are being converted to character factors
- Two it seems that passing data that has non-printable unicode characters from PowerBI to an R dataframe seems to have an issue. By clicking the clean text for every text column prior to executing an R script seemed to fix the issue.