-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARKR][SPARK-16507] Add a CRAN checker, fix Rd aliases #14173
Conversation
Also update Rd documentation to address a number of CRAN check warnings.
Test build #62215 has finished for PR 14173 at commit
|
Test build #62218 has finished for PR 14173 at commit
|
@@ -267,6 +267,10 @@ as.DataFrame.default <- function(data, schema = NULL, samplingRatio = 1.0) { | |||
createDataFrame(data, schema, samplingRatio) | |||
} | |||
|
|||
#' @rdname createDataFrame | |||
#' @aliases createDataFrame |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should aliases here be as.DataFrame so it could be found via ?
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch - fixed
Test build #62279 has finished for PR 14173 at commit
|
@felixcheung Can you check if you see the same error as Jenkins on your machine ? On my machine the install and tests seem to pass, so I think this is a R / roxygen / devtools version problem. |
Test build #62283 has finished for PR 14173 at commit
|
I ran both knitr and lintr on this, both succeeded. |
I managed to reproduce the issue that Jenkins was hitting. It had to do with using |
right, that line would not be necessary. |
Test build #62284 has finished for PR 14173 at commit
|
LGTM |
Test build #62336 has finished for PR 14173 at commit
|
Test build #62335 has finished for PR 14173 at commit
|
Jenkins, retest this please |
Test build #62348 has finished for PR 14173 at commit
|
@felixcheung Just to confirm, based on discussion in SPARK-16508 is this change good to merge ? |
Yap - I'll check if there's anything left as per SPARK-16508 |
Cool. Merging this to master, branch-2.0 |
## What changes were proposed in this pull request? Add a check-cran.sh script that runs `R CMD check` as CRAN. Also fixes a number of issues pointed out by the check. These include - Updating `DESCRIPTION` to be appropriate - Adding a .Rbuildignore to ignore lintr, src-native, html that are non-standard files / dirs - Adding aliases to all S4 methods in DataFrame, Column, GroupedData etc. This is required as stated in https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Documenting-S4-classes-and-methods - Other minor fixes ## How was this patch tested? SparkR unit tests, running the above mentioned script Author: Shivaram Venkataraman <shivaram@cs.berkeley.edu> Closes #14173 from shivaram/sparkr-cran-changes. (cherry picked from commit c33e4b0) Signed-off-by: Shivaram Venkataraman <shivaram@cs.berkeley.edu>
## What changes were proposed in this pull request? Add an install_spark function to the SparkR package. User can run `install_spark()` to install Spark to a local directory within R. Updates: Several changes have been made: - `install.spark()` - check existence of tar file in the cache folder, and download only if not found - trial priority of mirror_url look-up: user-provided -> preferred mirror site from apache website -> hardcoded backup option - use 2.0.0 - `sparkR.session()` - can install spark when not found in `SPARK_HOME` ## How was this patch tested? Manual tests, running the check-cran.sh script added in #14173. Author: Junyang Qian <junyangq@databricks.com> Closes #14258 from junyangq/SPARK-16579.
Add an install_spark function to the SparkR package. User can run `install_spark()` to install Spark to a local directory within R. Updates: Several changes have been made: - `install.spark()` - check existence of tar file in the cache folder, and download only if not found - trial priority of mirror_url look-up: user-provided -> preferred mirror site from apache website -> hardcoded backup option - use 2.0.0 - `sparkR.session()` - can install spark when not found in `SPARK_HOME` Manual tests, running the check-cran.sh script added in #14173. Author: Junyang Qian <junyangq@databricks.com> Closes #14258 from junyangq/SPARK-16579. (cherry picked from commit 214ba66) Signed-off-by: Shivaram Venkataraman <shivaram@cs.berkeley.edu>
What changes were proposed in this pull request?
Add a check-cran.sh script that runs
R CMD check
as CRAN. Also fixes a number of issues pointed out by the check. These includeDESCRIPTION
to be appropriateHow was this patch tested?
SparkR unit tests, running the above mentioned script