leifeld / dna

Discourse Network Analyzer (DNA)
127 stars 41 forks source link

Open DNA Connection Profile #242

Closed alamsyah78 closed 10 months ago

alamsyah78 commented 2 years ago

I create a DNA connection profile using DNA 3.0 and use it in R Studio. I get this message: # Error in .jcall(dnaEnvironment[["dna"]]$headlessDna, "Z", "openConnectionProfile", : RcallMethod: invalid object parameter

Thanks for the attention.

leifeld commented 2 years ago

Thanks for reporting this. I'll investigate, but it may take a few days before I get to it. Just to rule this out: did you successfully call dna_init() before opening the connection profile?

alamsyah78 commented 2 years ago

Q: Did you successfully call dna_init() before opening the connection profile? A: No, because I get an error when initializing dna_init() (see attachment)

dna error report

.

leifeld commented 2 years ago

Thanks, that's helpful. Note to myself: I think I may need to remove java.awt.* imports from the Java source file rDNA references for this to work. I should also add more sensible error message to all functions in rDNA if dna_init() was not successfully executed before using the respective function that depends on it.

I will fix it later this month.

leifeld commented 10 months ago

Sorry it took me so long, but this has been fixed now (in commit 1906b0cffe338f6ea95fb7aa6d63f0db2f318c5a) and will be included in DNA 3.0.11 upon release, which is planned for this month. See also #270 for more details.