在win 10下用Rstudio安装maftools报错compilation failed for package ‘maftools‘,不知道该怎么解决

install.packages("E:/R/R-4.1.1/library/maftools_2.8.0.tar.gz", repos = NULL, type = "source")

运行过程如下:

* installing *source* package 'maftools' ...
** using staged installation
** libs

*** arch - i386
"E:/R/rtools40/mingw32/bin/"gcc  -I"E:/R/R-41~1.1/include" -DNDEBUG -D_FILE_OFFSET_BITS=64 -I'E:/R/R-4.1.1/library/Rhtslib/include' -I'E:/R/R-4.1.1/library/zlibbioc/include'        -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign  -c ntcounts.c -o ntcounts.o
"E:/R/rtools40/mingw32/bin/"gcc  -I"E:/R/R-41~1.1/include" -DNDEBUG -D_FILE_OFFSET_BITS=64 -I'E:/R/R-4.1.1/library/Rhtslib/include' -I'E:/R/R-4.1.1/library/zlibbioc/include'        -O2 -Wall  -std=gnu99 -mfpmath=sse -msse2 -mstackrealign  -c somaticfreq.c -o somaticfreq.o
E:/R/rtools40/mingw32/bin/gcc -shared -s -static-libgcc -o maftools.dll tmp.def ntcounts.o somaticfreq.o E:/R/R-4.1.1/library/Rhtslib/usrlib/i386/libhts.a -L/lib/i386 -lcurl -lrtmp -lssl -lssh2 -lcrypto -lgdi32 -lz -lws2_32 -lwldap32 -lwinmm -lidn -LE:/R/R-41~1.1/bin/i386 -lR
E:/R/rtools40/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lcurl
E:/R/rtools40/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lrtmp
E:/R/rtools40/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lssl
E:/R/rtools40/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lssh2
E:/R/rtools40/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lcrypto
E:/R/rtools40/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lidn
collect2.exe: error: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'maftools'
* removing 'E:/R/R-4.1.1/library/maftools'
Warning in install.packages :
  installation of package ‘E:/R/R-4.1.1/library/maftools_2.8.0.tar.gz’ had non-zero exit status

电脑的R版本:
在这里插入图片描述

看看:
Rstudio安装包出现问题,install.packages失败解决方案_VIP薇你而来_新浪博客 Rstudio安装包出现问题,install.packages失败解决方案_VIP薇你而来_新浪博客,VIP薇你而来, http://blog.sina.com.cn/s/blog_ed1c38ba0102xz2k.html

403 Forbidden https://www.jb51.net/article/208804.htm

https://jingyan.baidu.com/article/95c9d20d5eae32ec4f756148.html