archlinux环境下调用install.packages()函数安装R扩展包出错,求大神解答!

install.packages("vcd")
Installing package into ‘/home/leo/R/x86_64-pc-linux-gnu-library/3.2’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Error: .onLoad failed in loadNamespace() for 'tcltk', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/usr/lib/R/library/tcltk/libs/tcltk.so':
libtcl8.6.so: cannot open shared object file: No such file or directory

没有 libtcl8.6.so。装了 tcl 没有?

怎么装啊,谢谢啦
tcl是linux的包吗?

pacman

tcl包装过了,
[leo@HSM /]$ cd usr/lib/R/library/tcltk/libs/
[leo@HSM libs]$ ls
tcltk.so
目录下有tcltk.so文件
接下来需要配置什么吗?

二楼都说了是没有 libtcl8.6.so。。。。

pacman -S tcl 试试?

tcltk 不是 tcl。

pacman -S tcl 就可以了。

tcl已经装过了,
$ cd usr/lib/R/library/tcltk/libs/
[leo@HSM libs]$ ls tcltk.so
路径下有也那个文件,还是不行,用root权限还是不行

The file you missed is libtcl8.6.so, which is located in /usr/lib/.

You have to install package "tcl". You can install it by:

$ sudo pacman -S tcl

Another package you may install as well:

$ sudo pacman -S tk

安装tk后就可以了,谢谢!