Menu

rkward can't load R-library

Help
2006-06-19
2013-01-15
  • Colin Kiegel

    Colin Kiegel - 2006-06-19

    I get the following error:

    "There was a problem starting the R backend. The following error(s) occurred:
    - The 'rkward' R-library could not be loaded. This library is needed for communication between R and RKWard and many things will not work properly if this library is not present.
    Likely RKWard will even crash. The 'rkward' R-library should have been included in your distribution or RKWard, and should have been set up when you ran 'make install'. Please t
    ry 'make install' again and check for any errors. You should quit RKWard now."

    I recompiled rkward a couple of times (with different arguments of course). Without success.

    I'm using Gentoo with R-2.2.1.

    What's the "'rkward' R-library"? Is it libR.so?

     
    • Thomas Friedrichsmeier

      Probaly I'm stating the obvious, but just in case: Did you do a
      # make install
      (as root)? This is absolutely required to run RKWard correctly, running from the source tree without make install will not work.

      The "rkward R library" is not libR.so. I know it must be confusing, but did not find a better term for it. RKWard - technically - expands R from two directions: The first is the frontend you invoke by calling rkward (which then invokes R). The second is a support library installed with R and invoked from R. The latter is the "rkward R library". It is built from the sources in rkward/rbackend/rpackages in the source tree.

      To test what exactly is going wrong, could you start plain R in a console (not rkward), then issue the command
      library (rkward)
      and post the output?

      Thanks!

       
      • Colin Kiegel

        Colin Kiegel - 2006-06-19

        I used the ebuild (but modified it, to disable arts-support if needed). It compiles successfuly. But R can't find any package called 'rkward'.

         
        • Thomas Friedrichsmeier

          For the record: Probably the .ebuild will not work at all with rkward-0.3.6. Manual compilation (
          # ./configure
          make
          make install
          ) works as expected on gentoo. The next release of rkward will hopefully have this fixed.

           
    • Roberto Natella

      Roberto Natella - 2007-04-18

      I got the same error with rkward-0.4.7 . I downloaded rkward-0.4.7.tar.gz and patched successfully with rkward_0.4.7-2.diff.gz; then I built a debian package using "dpkg-buildpackage -rfakeroot" (I didn't noticed any error), and I installed it using "dpkg --install". I use debian unstable on a powerpc machine, kde 3.5.5 and R packages shipped with debian. On the terminal rkward outputs these messages:

      $ rkward
      kdecore (KAction): WARNING: KAction::insertKAccel( kaccel = 0x102086e8 ): KAccel object already
      contains an action name "window_close"
      Errore: C stack usage is too close to the limit
      Errore: C stack usage is too close to the limit

      R version 2.5.0 beta (2007-04-12 r41139)
      Copyright (C) 2007 The R Foundation for Statistical Computing
      ISBN 3-900051-07-0

      R è un software libero ed è rilasciato SENZA ALCUNA GARANZIA.
      Siamo ben lieti se potrai redistribuirlo, ma sotto certe condizioni.
      Scrivi 'license()' o 'licence()' per dettagli su come distribuirlo.

      R è un progetto di collaborazione con molti contributi esterni.
      Scrivi 'contributors()' per maggiori informazioni e 'citation()'
      per sapere come citare R o i pacchetti di R nelle pubblicazioni.

      Scrivi 'demo()' per una dimostrazione, 'help()' per la guida in linea, o
      'help.start()' per l'help navigabile con browser HTML.
      Scrivi 'q()' per uscire da R.

      error in initialization call 'options (OutDec=".")
      '
      error in initialization call 'options (width=80)
      '
      error in initialization call 'options (warn=0)
      '
      error in initialization call 'options (warnings.length=1000)
      '
      error in initialization call 'options (keep.source=TRUE)
      '
      error in initialization call 'options (keep.source.pkgs=FALSE)
      '
      error in initialization call 'options (expressions=5000)
      '
      error in initialization call 'options (digits=7)
      '
      error in initialization call 'options (checkbounds=FALSE)
      '
      error in initialization call 'options (printcmd="kprinter")
      '
      error in initialization call 'options (repos=c (CRAN="@CRAN@"))
      '
      error in initialization call '.libPaths (unique (c ()))'

      the output I get from executing "library (rkward)" in R through the console is:

      > library (rkward)

      Carico il pacchetto richiesto: 'rkward'

              The following object(s) are masked from package:grDevices :

               x11,
               X11

              The following object(s) are masked from package:base :

               makeActiveBinding,
               q,
               quit,
               require,
               setwd,
               Sys.setlocale

      I also tried default rkward package shipped with debian (0.4.2) so I think all dependencies were automatically installed during that try (it didn't work too: /usr/bin/rkward.bin: symbol lookup error: /usr/bin/rkward.bin: undefined symbol: R_Visible).

      Thank you in advance for any hint

       
      • Thomas Friedrichsmeier

        Hi,

        the error you are getting may look similar, but is most certainly unrelated.

        I'll reply on the mailing list (and have you CC:ed), as I'll need to attach a file for your to try.

        Regards
        Thomas

         
MongoDB Logo MongoDB