Error in sink(type = "output") : invalid connection after using mrctools to ensure everything is in the place

For those who also encountered this problem on Mac M1 (as I found that most solutions are on windows), I tried the solution here:

and it works! I am so happy!