R error target of assignment expands to non-language object

ERROR R Source (Table) 3:1 Execute failed: Error in R code:
Error: target of assignment expands to non-language object

In the event you get this error message, just change the name of the file you are trying to read with readxl.

My scenario had files named 2020-ref… and by changing the name of the file to remove the hyphen and also move the numbers to the end of the file name, I was able to resolve the error.

If you search for this on other sites, the rabbit hole is endless. I compared the code to another workflow where I used the feature and found the only difference to be the file names. In all successful nodes the file names start with a string, non numeric character, and no -'s.

Hope this helps.

2 Likes

Thanks for posting your solution here! This will be useful for folks doing future searches about the same problem :+1:

1 Like