Github user yanboliang commented on the pull request: https://github.com/apache/spark/pull/11447#issuecomment-192209916 @hhbyyh Thanks for your review. I have also encountered this issue, because our ```survreg``` was masked by ```survreg``` in survival package under this condition. There are two solutions can make it work well: ``` library(survival) data(ovarian) df <- createDataFrame(sqlContext, ovarian) library(SparkR) model <- survreg(Surv(futime, fustat) ~ ecog_ps + rx, df) ``` or ``` library(survival) data(ovarian) df <- createDataFrame(sqlContext, ovarian) model <- SparkR::survreg(Surv(futime, fustat) ~ ecog_ps + rx, df) ``` We will recommend the former one. You will not load library survival if you use you own dataset, so it will not be masked in general case. But I think we should clarify this in API doc.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org