Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R: Having trouble installing rpanel

Tags:

package

r

I am trying to install the packages rpanel and tkrplot on RStudio. After downloading and installing there I got this message:

downloaded 686 Kb
* installing *source* package ‘rpanel’ ...
** package ‘rpanel’ successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** demo
** inst
** preparing package for lazy loading
Error in structure(.External(.C_dotTcl, ...), class = "tclObj") : 
  [tcl] can't find package BWidget.

Error : unable to load R code in package ‘rpanel’
ERROR: lazy loading failed for package ‘rpanel’
* removing ‘..../R/i686-pc-linux-gnu-library/3.0/rpanel’
Warning in install.packages :
  installation of package ‘rpanel’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/Rtmp1MdC0f/downloaded_packages’

I already installed BWidget on my own, but it didn't help. Anyone any ideas about this problem and maybe can help me? The system is Ubuntu 12.04. Under windows 7 there is no problem and everything is working fine.

like image 244
user3301852 Avatar asked Feb 12 '14 13:02

user3301852


2 Answers

There are easier ways to install BWidgets. On my mac with Macports I did:

sudo port install BWidget

On Ubuntu you can probably install it with apt-get:

sudo apt-get install bwidget
like image 51
Calimo Avatar answered Sep 20 '22 14:09

Calimo


"Stumbled across this while looking for an answer to the same question. Like an unfortunate number of library authors, the BWidgets people have assumed that the only people who need to use their libraries are planning to code with them. For those of us who've never used TCL, the installation instructions mean nothing.

From the a document called tuto-install-tkabber on the tkabber.jabber.ru website (irritating spam catcher won't let me post a URL), the answer is:

Install the BWidgets directory into the "lib" directory returned by: whereis tcl

It should look something like: /usr/lib/tcl8.4"

from http://www.linuxquestions.org/questions/linux-software-2/where-to-install-bwidget-tcl-98583/ did the trick for me

Also I got BWidget from: http://sourceforge.net/projects/tcllib/files/BWidget/1.7.0/BWidget-1.7.0.zip/download

like image 39
Andrew Cassidy Avatar answered Sep 23 '22 14:09

Andrew Cassidy