gcc -I"/usr/share/R/include" -DNDEBUG -fpic -g -O2 -ffile-prefix-map=/build/r-base-4A2Reg/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c colorspace.c -o colorspace.o
colorspace.c:2:10: fatal error: ctype.h: No such file or directory
2 | #include <ctype.h>
| ^~~~~~~~~
compilation terminated.
make: *** [/usr/lib/R/etc/Makeconf:168: colorspace.o] Error 1
ERROR: compilation failed for package ‘colorspace’
* removing ‘/home/shuaiwang/R/x86_64-pc-linux-gnu-library/4.1/colorspace’
Warning in install.packages :
installation of package ‘colorspace’ had non-zero exit status
sudo apt-get install build-essential