Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7168131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:43:03+00:00 2026-05-28T14:43:03+00:00

I’m trying to do some work between java and r (using some of the

  • 0

I’m trying to do some work between java and r (using some of the cross-correlation tools and other stats functions) and am trying to use the JGR package. I’ve spend a decent amount of time looking at the documentation and am having some difficulty figuring out how this JGR package works and even what its purpose is. A few questions:

1) Where do I actually write the code? In RGUI, in Eclipse, in some other console I have yet to experience?

I start by starting JGR:

> JGR()


Copy the following into WordPad and save as "jgrLaunch.bat"

set R_HOME=C:\PROGRA~1\R\R-214~1.0
set R_LIBS=C:\Users\~\Documents\R\win-library\2.14
set R_LIBS_USER=C:\Users\~\Documents\R\win-library\2.14;C:\Program Files\R\R-2.14.0\library
jgr-1_62.exe --rhome=C:\PROGRA~1\R\R-214~1.0 --libpath=C:\Users\~\Documents\R\win-library\2.14

Starting JGR ...
> 

When I drop examples from the reference manual into R I get the following:

> jgr.addMenu("Workspace")
jgr.addMenu() cannot be used outside JGR.
> jgr.addMenuItem("Workspace","Browse","ls()")
jgr.addMenuItem() cannot be used outside JGR.
> jgr.addMenuSeparator("Workspace")
jgr.addMenuSeparator() cannot be used outside JGR.
> jgr.addMenuItem("Workspace","Browse (pos=2)","ls(pos=2)")
jgr.addMenuItem() cannot be used outside JGR.
> menus <- jgr.getMenuNames()
jgr.getMenuNames() cannot be used outside JGR.
> index <- which(menus=="Packages & Data")
> if(length(index)==0) index <- 1
> jgr.insertMenu("User menu",index)
jgr.insertMenu() cannot be used outside JGR.
> jgr.addMenuItem("User menu","A good place for user generated menus is","print(’before Packages & Data’)")
jgr.addMenuItem() cannot be used outside JGR.

But when I put it into eclipse there are things like <- that seem out of place.

2) Does anyone have any actual code? I usually can figure this stuff out with a few code examples but haven’t been able to track any down.

3) Any suggestions for a way that might be better/easier (ie different packages or setups)?

Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T14:43:04+00:00Added an answer on May 28, 2026 at 2:43 pm

    JGR is Java GUI for R and you run it by double-clicking on the JGR icon — which you download from http://rforge.net/JGR/web-files/jgr-1_62-x64.exe (64-bit) or http://rforge.net/JGR/web-files/jgr-1_62.exe (32-bit). What you loaded in R is merely the supporting R package and you ran it in Rgui, not in JGR (hence the errors).

    JGR itself uses JRI (Java/R Interface) from rJava to load R into the Java process. If you are interested in using R from Java you can do the same. The API is documented in http://rforge.net/Rserve/doc/

    You can use exactly the same API on the Java side with Rserve which uses a client/server model of communication.

    You can have a look at the stats-rosuda-devel mailing list which is a place to discuss JGR, rJava, JRI, Rserve etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I have thousands of HTML files to process using Groovy/Java and I need to
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I want use html5's new tag to play a wav file (currently only supported

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.