Hi,

still for the problem of short path names. The following code
works with background server and forground server too.

env<-environment(.libPaths)
assign(".lib.loc",shortPathName(get(".lib.loc",envir=env)),envir=env)
library("tkrplot")


Vilmos


[EMAIL PROTECTED] írta:
Hi RExcel users, I am exploring the package tkrplot. This allows you to build interactive plots using tctlk. >From Excel I am running the following source using "Rinterface.RunRFile":

library(tcltk)
library(tkrplot)
tt <- tktoplevel()
bb<-1
img <-tkrplot(tt, function() plot(1:20,(1:20)^bb))
f<-function(...) {
    b <- as.numeric(tclvalue("bb"))
    if (b != bb) {
        bb <<- b
        tkrreplot(img)
    }
}
s <- tkscale(tt, command=f, from=0.05, to=2.00, variable="bb",
             showvalue=FALSE, resolution=0.05, orient="horiz")
tkpack(img,s)



My example works fine when I am using a foreground server config in RExcel. However, as soon as I switch to a background server config I get an error message (using the Debug R option in RExcel) saying
Error in library(tkrplot) : .First.lib failed for 'tkrplot'

i.e. that loading of the library(tkrplot) has failed.
Any ideas why this should happen or how to fix it?

I am using R version 2.6.1
R(D)Com server is: RSrv250_pl1.exe


Regards

Wayne


May I suggest you try a newer version of R. The current verion is 2.6.1 which can be found here http://cran.r-project.org/bin/windows/base/R-2.6.1-win32.exe

Also there is a newer version of R(D)Com which can be found here:  
http://rcom.univie.ac.at/download/current/RSrv250_pl1.exe

I have no direct experience with Excel 2007 (yet) but I will need to test R(D)Com on Excel 2007 and Vista in the very near future.

Therefore, I would be very interested to hear about your progress.

Regards

Wayne

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ]On Behalf Of Farrokhnia, Baharak
Sent: 06 February 2008 19:54
To: rcom-l@mailman.csd.univie.ac.at
Subject: [Rcom-l] RSrv200 and Excel 2007

Hello,

I installed R-2.4.1-win32.exe successfully.
Then I installed RSrv200.exe and I got an error "RExcel Addin … was not found". (Unfortunately I don't have the full message at the moment.)

I had selected "Excel Add-In" component during the installation.
I have Excel 2007 installed.

Which version of Excel does RSrv200 work with?
Which version of R(D)COM do I need to get it working with Excel 2007?

Thanks,

Baharak

_______________________________________________
Rcom-l mailing list
Rcom-l@mailman.csd.univie.ac.at
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
More information (including a Wiki) at http://rcom.univie.ac.at



_______________________________________________
Rcom-l mailing list
Rcom-l@mailman.csd.univie.ac.at
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
More information (including a Wiki) at http://rcom.univie.ac.at


_______________________________________________
Rcom-l mailing list
Rcom-l@mailman.csd.univie.ac.at
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
More information (including a Wiki) at http://rcom.univie.ac.at

_______________________________________________
Rcom-l mailing list
Rcom-l@mailman.csd.univie.ac.at
http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l
More information (including a Wiki) at http://rcom.univie.ac.at

Reply via email to