-
- Downloads
[SPARK-14883][DOCS] Fix wrong R examples and make them up-to-date
## What changes were proposed in this pull request? This issue aims to fix some errors in R examples and make them up-to-date in docs and example modules. - Remove the wrong usage of `map`. We need to use `lapply` in `sparkR` if needed. However, `lapply` is private so far. The corrected example will be added later. - Fix the wrong example in Section `Generic Load/Save Functions` of `docs/sql-programming-guide.md` for consistency - Fix datatypes in `sparkr.md`. - Update a data result in `sparkr.md`. - Replace deprecated functions to remove warnings: jsonFile -> read.json, parquetFile -> read.parquet - Use up-to-date R-like functions: loadDF -> read.df, saveDF -> write.df, saveAsParquetFile -> write.parquet - Replace `SparkR DataFrame` with `SparkDataFrame` in `dataframe.R` and `data-manipulation.R`. - Other minor syntax fixes and a typo. ## How was this patch tested? Manual. Author: Dongjoon Hyun <dongjoon@apache.org> Closes #12649 from dongjoon-hyun/SPARK-14883.
Showing
- R/pkg/R/DataFrame.R 1 addition, 1 deletionR/pkg/R/DataFrame.R
- docs/sparkr.md 5 additions, 6 deletionsdocs/sparkr.md
- docs/sql-programming-guide.md 13 additions, 17 deletionsdocs/sql-programming-guide.md
- examples/src/main/r/data-manipulation.R 11 additions, 11 deletionsexamples/src/main/r/data-manipulation.R
- examples/src/main/r/dataframe.R 1 addition, 1 deletionexamples/src/main/r/dataframe.R
Loading
Please register or sign in to comment