kachkaev / php-r

Provides ability to run R scripts from PHP
MIT License
143 stars 41 forks source link

Issue with logistic regression expression (tilde issue ?) #37

Open mikaelc opened 6 years ago

mikaelc commented 6 years ago

Hi,

Thanks for your beautiful library ! I have an issue with this specific command :

reg<-glm(col0~.,data=a,family=binomial(logit))

Every other command works well but as soon as I add this one, I get an error "The last command in the R input is not complete"

Maybe it comes from the ~ character ? I tried to addslashe it or escape it \ but without success

Would you have an idea ?

Thanks a lot ! Mikaël

kachkaev commented 6 years ago

Hi Mikaël, thanks for reporting this issue.

Unfortunately, I won't be able to find time on looking into the problem. However, if you find the cause and submit a PR, I'll be happy to accept it.