Displaying 4 results from an estimated 4 matches for "rwrapper".
Did you mean:
wrapper
2014 Sep 26
1
[rJava] RJavaClassLoader and system classloader
Hi everyone,
I want to call a Java application from R and have encountered some problems with the way rJava deals with the system class loader.
To run my application, I use the following R script:
> library(rJava)
> .jinit()
> .jaddClassPath("myApp.jar")
> rWrapper <- .jnew("org/test/RWrapper")
> .jcall(rWrapper,"V","start")
My Java application has a plugins loading mechanism that uses a specific PluginClassLoader to load plugins stored in additional JAR files (e.g. plugin.jar). This PluginClassLoader is programed so that...
2005 Jul 27
1
unable to source a .R file using RJava
...l3
getData <- function(query,
db.name="csbdev",
user.name="noone",
passwd="pass"){
R <- 2
R
}
.java code to invoke the evaluate method
-----------------------------------------
package com.icoria.rwrapper;
import org.omegahat.R.Java.ROmegahatInterpreter;
import org.omegahat.R.Java.REvaluator;
public class JavaRCall3
{
/**
* want to see if I can eval a t.test command like what I would run in the
* R command line
*/
static public void run_sourceRFile(REvaluator e, ROmegahat...
2006 Nov 27
1
R.DLL mapping by P/Invoke
...f some of you can find the reason of the crash, I will be extremely happy!
Here is a sample program.cs to invoke the DLL (and crash) :
using System;
using System.Collections;
using System.Text;
namespace SharpR
{
class Program
{
static void Main(string[] args)
{
RWrapper.EvaluateNoReturn("print(\"Boom!\")");
}
}
}
-------------- next part --------------
#define SUPERCONSOLE
using System;
using System.Collections;
using System.Runtime.InteropServices;
using System.Text;
using Microsoft.Win32;
namespace SharpR
{
/// <summary&...
2007 Oct 17
0
Using R.dll in .NET IPC
...ne SUPERCONSOLE
using System;
using System.Collections;
using System.Runtime.InteropServices;
using System.Text;
using Microsoft.Win32;
namespace SharpR
{
/// <summary>
/// Class for interp with the R.DLL. All is static as R is mono-threaded.
/// </summary>
class RWrapper
{
#region <R.DLL interop signatures>
//- DLL Management/Information
[DllImport("R.DLL", /*CallingConvention = CallingConvention.Cdecl,*/ CharSet = CharSet.Ansi)]
[return: MarshalAs(UnmanagedType.LPStr)]
static extern string getDLLVersion(...