Error in installing 'tkrplot'

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Error in installing 'tkrplot'

rnsarma
This is mesage Ia  getting. How to resolve it

install.packages("tkrplot")
Installing package into ‘/home/rnsarma/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
trying URL 'https://cloud.r-project.org/src/contrib/tkrplot_0.0-23.tar.gz'
Content type 'application/x-gzip' length 39037 bytes (38 KB)
==================================================
downloaded 38 KB

* installing *source* package ‘tkrplot’ ...
** package ‘tkrplot’ successfully unpacked and MD5 sums checked
configure: creating ./config.status
config.status: creating src/Makevars
** libs
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I/usr/include/tcl8.6 -I/usr/include/tcl8.6     -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c tcltkimg.c -o tcltkimg.o
tcltkimg.c:2:16: fatal error: tk.h: No such file or directory
compilation terminated.
/usr/lib/R/etc/Makeconf:159: recipe for target 'tcltkimg.o' failed
make: *** [tcltkimg.o] Error 1
ERROR: compilation failed for package ‘tkrplot’
* removing ‘/home/rnsarma/R/x86_64-pc-linux-gnu-library/3.4/tkrplot’

The downloaded source packages are in
        ‘/tmp/RtmpKdEgly/downloaded_packages’
Warning message:
In install.packages("tkrplot") :
  installation of package ‘tkrplot’ had non-zero exit status