Hi Wojciech,
Wojciech Gryc wrote:
> Hi everyone,
>
> Posted 0.1.7 up at http://wiki.services.openoffice.org/wiki/R_and_Calc
Very nice! Graphics work now, which is great!
What still does not work, are the Menu-Commands (like ANOVA,
Correlation). RServe just silently crashes when calling one of the
Menus. However, loading the script by hand works fine, so it seems that
the script file is fine.
> Leonard -- sorry for being so modest with the version system! But please
> don't worry, we're actually going to jump to "1.0" as soon as enough bugs
> are fixed. I won't be adding new features until the current bugs are
worked
> out.
It's OK. Fixing bugs has surely top priority.
> Speaking of bugs, I *think* I fixed the Windows image problem. Also,
I think
> I fixed the problem for outputting text and Strings (at least some of
these
> problems). You can also output a matrix of labels, though they have to be
> the same text (e.g. {$OUT#A1:C10}<-hello )
Yes, seems OK. [Though importing strings seems not implemented, yet.]
There are still some errors. Try the following script inside the coding
window:
y<-data.frame(c("my text"))
names(y)<-"test"
my.class<-class(y)
{$OUT#F1}<-{$BASE}
// CORRECT
my.name<-names(y)
{$OUT#F2}<-{$BASE}
// CORRECT
x<-y["test"]
{$OUT#F3}<-{$BASE}
// DID NOT PRODUCE CORRECT OUTPUT
x<-y
{$OUT#F4}<-test
// DOES NOT WORK
// SHOULD PRODUCE my text
The actual output is:
data.frame
test
BASE
<- EMPTY
> Leonard -- one more question... You'll notice the plot commands use
JPG and
> PNG files. Do you know if there's any way to send output to an EPS (or
> similar) file without having an R window pop up? i.e. Sending it to
print an
> EPS wouldn't be a good idea, but rather using a command similar to the
> jpeg() command.
Graphics output is not my specialty. Though you could try:
help("dev.copy2eps")
Unfortuantely dev.copy2eps() crashes RServe. I will look further into
possible solutions, but I just haven't worked at all with eps files.
[COPY/PASTE just worked, so I had no need to experiment with anything
more complex.]
> Niklas -- can you please elaborate on the CLASSPATH settings you used
to get
> the GUI menus to work? They worked for me without any problems, on both
> Fedore Core, Ubuntu, and Windows XP, so I'd really appreciate some more
> advice on this bug.
>
> Thank you,
> Wojciech
>
> On 8/23/07, Leonard Mada <[EMAIL PROTECTED]> wrote:
>> Hi Eike, Hi Wojciech,
>>
>> Eike Rathke wrote:
>>> Hi Leonard,
>>>
>>> On Wednesday, 2007-08-22 21:20:49 +0300, Leonard Mada wrote:
>>>
>>>
>>>>> - The dialog txt files aren't found without strange CLASSPATH
>> settings.
>>>>> - On Windows, R doesn't seem to like the backslashes in the path to
>>>>> the jpeg file. Replacing them with forward slashes seems to work, I
>>>>> didn't check if it's supposed to be that way.
>>>>>
>>>> Well, now that the culprit is found, I hope in a fast solution. One
>>>> small note with R:
>>>> - on Windows, IF you want to use a path with '\'-slashes in R, you
need
>>>> to escape the slashes, like: '\\'
>>>> - R accepts the '/'-slashes on windows, too
>>>> - I don't know IF one needs to additionally escape the '\'-slashes in
>>>> Rserve, too (like in some regexp's, having to write '\\\\' for a
single
>>>> literal '\')
>>>>
>>> Usually path munging library functions on Windows consume '/'
instead of
>>> '\', even the ones shipped with MSVC. It's only command line arguments
>>> that may confuse applications with '/' (e.g. dir c:/windows ) because
>>> they take it for an option switch. IMHO, in a programmatical context
>>> there shouldn't be need to use '\' in paths on Windows, so they can be
>>> written transparently on all platforms.
>>>
>>> Eike
>>>
>> Indeed, forward-slashes ('/') are the preferred way to write a file path
>> in R (even under Windows).
>>
>> Now to serious things: when will I see a new version of the RCalc
>> plugin? (maybe it's time for 0.2)
>> I am eagerly awaiting to see image-import working.
>>
>> Sincerely,
>>
>> Leonard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]