aboutsummaryrefslogtreecommitdiff
path: root/R/pkg/inst/profile/shell.R
diff options
context:
space:
mode:
authorfelixcheung <felixcheung_m@hotmail.com>2015-11-12 20:02:49 -0800
committerShivaram Venkataraman <shivaram@cs.berkeley.edu>2015-11-12 20:02:49 -0800
commited04846e144db5bdab247c0e1fe2a47b99155c82 (patch)
tree5be48edeab8c70de790bf24d038843423602d804 /R/pkg/inst/profile/shell.R
parente71c07557c39e2f74bd20d2ab3a2fca88aa5dfbb (diff)
downloadspark-ed04846e144db5bdab247c0e1fe2a47b99155c82.tar.gz
spark-ed04846e144db5bdab247c0e1fe2a47b99155c82.tar.bz2
spark-ed04846e144db5bdab247c0e1fe2a47b99155c82.zip
[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` ![image](https://cloud.githubusercontent.com/assets/8969467/10933937/17bf5b1e-8291-11e5-9777-40fc632105dc.png) 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.
Diffstat (limited to 'R/pkg/inst/profile/shell.R')
-rw-r--r--R/pkg/inst/profile/shell.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/pkg/inst/profile/shell.R b/R/pkg/inst/profile/shell.R
index 7189f1a260..90a3761e41 100644
--- a/R/pkg/inst/profile/shell.R
+++ b/R/pkg/inst/profile/shell.R
@@ -38,7 +38,7 @@
if (nchar(sparkVer) == 0) {
cat("\n")
} else {
- cat(" version ", sparkVer, "\n")
+ cat(" version ", sparkVer, "\n")
}
cat(" /_/", "\n")
cat("\n")