This tool might help

http://www.softpedia.com/get/System/File-Management/Set-Short-File-Name.shtml

Prokaj Vilmos wrote:
> Hi,
> At the moment I see what went wrong, with no idea how to correct it, or
> what causes this behaviour.
> 
> The .First.lib function of this package contains the following lines
> 
> file <- system.file(path, package = pkg, lib.loc = lib)[1]
>        .Tcl(paste("load", file, "Rplot"))
> 
> where the values of the variables at moment of the call are
> path="libs/tkplot.dll"
> pkg="tkrplot"
> lib=NULL
> 
> So the problem is that if you call the
> system.file
> function  in background server you obtain the full path name with spaces
> in it (Program Files) while in the forground server you obtain a short
> path name as Progra~1/ etc.
> 
> In the next line the .Tcl command therefore sees three arguments in case
> of the background server, and this is the problem.
> 
> sytem.file uses the value of .Library variable.   This is set to the
> long path format in background server and short path format in
> foreground server.
> 
> A workaround is to set this variable by hand to short path name of the
> library directory using
> 
> assignInNamespace(".Library",<short path name to library dir>,ns="base")
> 
> 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
> 
> 

-- 
Erich Neuwirth, University of Vienna
Faculty of Computer Science
Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-39464 Fax: +43-1-4277-39459
_______________________________________________
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