-
- Downloads
[SPARK-11263][SPARKR] lintr Throws Warnings on Commented Code in Documentation
Clean out hundreds of `style: Commented code should be removed.` from lintr Like these: ``` /opt/spark-1.6.0-bin-hadoop2.6/R/pkg/R/DataFrame.R:513:3: style: Commented code should be removed. # sc <- sparkR.init() ^~~~~~~~~~~~~~~~~~~ /opt/spark-1.6.0-bin-hadoop2.6/R/pkg/R/DataFrame.R:514:3: style: Commented code should be removed. # sqlContext <- sparkRSQL.init(sc) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/spark-1.6.0-bin-hadoop2.6/R/pkg/R/DataFrame.R:515:3: style: Commented code should be removed. # path <- "path/to/file.json" ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` tried without export or rdname, neither work instead, added this `#' noRd` to suppress .Rd file generation also updated `family` for DataFrame functions for longer descriptive text instead of `dataframe_funcs`  this covers *most* of 'Commented code' but I left out a few that looks legitimate. Author: felixcheung <felixcheung_m@hotmail.com> Closes #9463 from felixcheung/rlintr.
Showing
- R/pkg/R/DataFrame.R 115 additions, 117 deletionsR/pkg/R/DataFrame.R
- R/pkg/R/RDD.R 811 additions, 774 deletionsR/pkg/R/RDD.R
- R/pkg/R/SQLContext.R 32 additions, 34 deletionsR/pkg/R/SQLContext.R
- R/pkg/R/context.R 117 additions, 118 deletionsR/pkg/R/context.R
- R/pkg/R/generics.R 0 additions, 18 deletionsR/pkg/R/generics.R
- R/pkg/R/pairRDD.R 462 additions, 448 deletionsR/pkg/R/pairRDD.R
- R/pkg/R/sparkR.R 1 addition, 2 deletionsR/pkg/R/sparkR.R
- R/pkg/inst/profile/shell.R 1 addition, 1 deletionR/pkg/inst/profile/shell.R
Loading
Please register or sign in to comment