After reinstalling R4.0, RTools40 and doing a source install of the rstan package I’m no longer getting the cleanup_makevar issue, but I am getting another issue where rstan seems to think I’m allocating gigantic vectors! I made another post about it here:
But figured I’d comment here as well in case the root issue is still the same.