gdemin/excel.link

UDF RExec in R_connection_examples.xlsm Error in R script due to "," decimal point (?)

jacekkotowski opened this issue · 6 comments

In Poland I am using US version of Excel with Polish locales. All excel formula parameters are separated with ";" and all decimal points are ","
It is probably why UDF RExec fails to execute throwing "Error in R script."
If it is an issue, is it possible to add parameter for decimal point?

I am afraid separator can also be an issue, since I often read csv's with csv2 function or specify ";" as separator. Is it possible also to specify separator?

Maybe it is possible to set both decimal point and separator globally for a session with one command like in data.pasta package?

It is also possible, that some other issue related to local settings may interfere like a symbol separating rows in matrix (?)

I would like to thank you for sharing this wonderful, very promising project! It ma be great in environments where Excel rules and it is a struggle to promote R as a better tool.

Could you provide example of your code/spreadsheet?

In most cases decimal separator is converted internally. I didn't encounter any problem with it nevertheless is it comma or point.

Sorry, I don't see the file. Could you attach it one more time?
Also it may be useful if you give me sessionInfo() ouput in your R console.

Please, try new R_connection_examples.xlsm. I made some fixes and I hope it will work.

It works now. I will play with it extensively to see if anything shows up. Thanks very much.
I wish you all the best.

Fixed in version 0.9.8