Displaying 13 results from an estimated 13 matches for "jobjref".
2008 Nov 06
1
problem packaging S4 class that contains a slot of jobjRef class
...ss definition:
twsConnect <- function(...)
new("twsConnect", ...)
setClass(
Class="twsConnect",
representation=representation(
clientId = "integer",
host = "character",
port = "integer",
reference = "jobjRef"),
prototype=prototype(
clientId = as.integer(0),
host = "",
port = as.integer(7496),
reference = .jnull())
)
setMethod("initialize", "twsConnect", function(
.Object, clientId = 0, host = "", port = 7496, ...)
{...
2009 Oct 27
1
Rjava, RImageJ, and/or S4 question.
...lays an image (assuming ImageJ is installed on your computer).
library(RImageJ)
img <- IJ$openImage( file.choose() ) #pick an available .tif file
img$show() # make the image object visible
# An image is now displayed
# find out about the objects involved
> str(IJ)
Formal class 'jobjRef' [package "rJava"] with 2 slots
..@ jobj :<externalptr>
..@ jclass: chr "ij/IJ"
> str(img)
Formal class 'jobjRef' [package "rJava"] with 2 slots
..@ jobj :<externalptr>
..@ jclass: chr "java/lang/Object"
# now use an...
2006 Mar 03
1
Java related (?) problems with RWeka
...Token[=], line 1
at weka.core.Instances.errms(Unknown Source)
at weka.core.Instances.getLastToken(Unknown Source)
at weka.core.Instances.readHeader(Unknown Source)
at weka.core.Instances.<init>(Unknown Source)
Error in validObject(.Object) : invalid class "jobjRef" object:
invalid object for slot "jobj" in class "jobjRef": got class "NULL",
should be or extend class "externalptr"
In addition: Warning message:
Unable to create object of the class weka/core/Instances , returning
null reference. in: .jnew("weka/...
2016 Jul 26
3
Exportar datos en formato de Excel
...Javier, de antemano muchas gracias por tu ayuda! :)
> >
> > He intentado replicar tu script pero sale el siguiente error:
> >
> > Error in .jarray(v) :
> > Java Exception <no description because toString() failed>.jarray(v)<S4
> > object of class "jobjRef">
> > > saveWorkbook(exc)
> > Error in .jcheck() :
> > Java Exception <no description because toString()
> > failed>.jcall("RJavaTools", "Z", "hasMethod", .jcast(x,
> > "java/lang/Object"), name)<S4 object o...
2009 Oct 13
1
for loop over S4
Hello,
Consider this :
> setClass("track", representation(x="numeric", y="numeric"))
[1] "track"
> o <- new( "track", x = 1, y = 2 )
> for( i in o ){
+ cat( "hello\n")
+ }
Error: invalid type/length (S4/1) in vector allocation
This happens at those lines of do_for:
n = LENGTH(val);
PROTECT_WITH_INDEX(v =
2012 Oct 30
2
Java Exception error while reading large data in R from DB using RJDBC.
...d, sep = ""))
s <- sprintf("select * from cypress_modeldev_account_info")
temp <- dbGetQuery(conn, s)
Error in .jcheck() :
Java Exception <no description because toString() failed>.jcall(rp, "I",
"fetch", stride)<S4 object of class "jobjRef">
--
View this message in context: http://r.789695.n4.nabble.com/Java-Exception-error-while-reading-large-data-in-R-from-DB-using-RJDBC-tp4647844.html
Sent from the R help mailing list archive at Nabble.com.
2013 Sep 06
1
Java exception error (Jcheck) while running an R script
...olve it.
The error I get is the following:
----
Error in .jcheck(silent = FALSE) :
Java Exception <no description because toString() failed>.jcall(row[[ir]],
"Lorg/apache/poi/ss/usermodel/Cell;", "createCell", as.integer(colIndex[ic] -
1))<S4 object of
class "jobjRef">
----
As I am not a programmer, i don't really understand the error message. I did a
search to try to understand what is wrong and if i am correct the problem is
related with the 'rjava' package. I am not using directly this package but i am
using the 'xlsx' package th...
2016 Jul 26
7
Exportar datos en formato de Excel
Buenos días a todos!
Estoy trabajando con una base de datos que directamente he descargado de
internet y después de prepararla un poco necesito exportarla a Excel he
intentando con las dos opciones que mencionaré al final pero ninguna
funciona, de qué otra manera puedo exportar esos datos a Excel... muchas
gracias por su ayuda y pronta respuesta!
1)
library(xlsx)
library(rJava)
2012 Nov 08
0
FW: Interfacing R and Weka
...st")) :
java.lang.NoSuchMethodError: <init>
> traceback()
8: stop(list(message = "java.lang.NoSuchMethodError: <init>", call = .jnew("weka/core/Attribute",
attname[i], .jcast(levels, "java/util/List")), jobj = <S4 object of class
"jobjRef">)) at call.R#13
7: .External(RcreateObject, class, ..., silent = silent) at call.R#13
6: .jnew("weka/core/Attribute", attname[i], .jcast(levels, "java/util/List")) at
readers.R#243
5: read_data_into_Weka(mf, 1L) at readers.R#33
4: read_model_frame_into_Weka(mf) at class...
2013 Mar 19
0
Eror : OutOfMemoryError (Java): Java heap space
...x1000m")
> writeWorksheet(wb, SP, sheet = "SP")
Erreur dans .jcheck() :
Java Exception <no description because toString()
failed>.jcall("RJavaTools", "Z", "hasField", .jcast(x, "java/lang/Object"),
name)<S4 object of class "jobjRef">
The size of my data is very very huge ( i have to create 3187 sheets of xlsx
to pute the label of variables
--
View this message in context: http://r.789695.n4.nabble.com/Eror-OutOfMemoryError-Java-Java-heap-space-tp4661792.html
Sent from the R help mailing list archive at Nabble.com.
2006 Apr 15
2
cannot load rJava in R
...text html latex
jfloat text html latex
jinit text html latex example
jnew text html latex example
jnull text html latex example
jobjRef-class text html latex
jreflection text html latex example
print text html latex
** building package indices ...
* DONE (rJava)
The downloaded packages are in
/tmp/RtmptQkoVL/downloaded_packages
&g...
2007 Jan 31
0
Fwd: Unable to load rJava - Undefined Symbol GetCreatedJavaVMs
...text html latex
jfloat text html latex
jinit text html latex example
jnew text html latex example
jnull text html latex example
jobjRef-class text html latex
jreflection text html latex example
jsimplify text html latex example
show text html latex
** building package indices ...
* DONE (rJava)
The downl...
2009 Jul 15
2
rJava fails compilation on R-2.9.1 but not R-2.7.1 on Debian Lenny
...text html latex
jinit text html latex example
jmemprof text html latex example
jnew text html latex example
jnull text html latex example
jobjRef-class text html latex
jpackage text html latex example
jreflection text html latex example
jserialize text html latex
jsimplify text html latex...