Issue installing Fansi package in R

You seem to have the same question as OP in this thread, and the solution is the same as well