This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new f72b906  [SPARK-34643][R][DOCS] Use CRAN URL in canonical form
f72b906 is described below

commit f72b9068adadaa0478a5306c4778346b04ac8a47
Author: HyukjinKwon <[email protected]>
AuthorDate: Fri Mar 5 10:08:11 2021 -0800

    [SPARK-34643][R][DOCS] Use CRAN URL in canonical form
    
    ### What changes were proposed in this pull request?
    
    This PR fixes the URL links to use CRAN URL in canonical form.
    CRAN package submission was failed as below:
    
    ```
       Found the following (possibly) invalid URLs:
         URL: https://cran.r-project.org/web/packages/e1071/index.html
           From: man/spark.naiveBayes.Rd
           Status: 200
           Message: OK
           CRAN URL not in canonical form
         URL: https://cran.r-project.org/web/packages/mixtools/index.html
           From: man/spark.gaussianMixture.Rd
           Status: 200
           Message: OK
           CRAN URL not in canonical form
         URL: https://cran.r-project.org/web/packages/survival/index.html
           From: man/spark.survreg.Rd
           Status: 200
           Message: OK
           CRAN URL not in canonical form
         URL: https://cran.r-project.org/web/packages/topicmodels/index.html
           From: man/spark.lda.Rd
           Status: 200
           Message: OK
           CRAN URL not in canonical form
         The canonical URL of the CRAN page for a package is
           https://CRAN.R-project.org/package=pkgname
    ```
    
    ### Why are the changes needed?
    
    To fix CRAN package submission
    
    ### Does this PR introduce _any_ user-facing change?
    
    It exposes a canoncal form of URLs to end users.
    
    ### How was this patch tested?
    
    I manually clicked each links.
    
    Closes #31759 from HyukjinKwon/minor-doc-fixes.
    
    Authored-by: HyukjinKwon <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 R/DOCUMENTATION.md             | 2 +-
 R/pkg/R/mllib_classification.R | 2 +-
 R/pkg/R/mllib_clustering.R     | 4 ++--
 R/pkg/R/mllib_regression.R     | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/R/DOCUMENTATION.md b/R/DOCUMENTATION.md
index fd0c764..d4ff3f5 100644
--- a/R/DOCUMENTATION.md
+++ b/R/DOCUMENTATION.md
@@ -19,7 +19,7 @@ license: |
 # SparkR Documentation
 
 SparkR documentation is generated by using in-source comments and annotated by 
using
-[`roxygen2`](https://cran.r-project.org/web/packages/roxygen2/index.html). 
After making changes to the documentation and generating man pages,
+[`roxygen2`](https://cran.r-project.org/package=roxygen2). After making 
changes to the documentation and generating man pages,
 you can run the following from an R console in the SparkR home directory
 ```R
 library(devtools)
diff --git a/R/pkg/R/mllib_classification.R b/R/pkg/R/mllib_classification.R
index 71ebe4e..093467e 100644
--- a/R/pkg/R/mllib_classification.R
+++ b/R/pkg/R/mllib_classification.R
@@ -574,7 +574,7 @@ setMethod("write.ml", signature(object = 
"MultilayerPerceptronClassificationMode
 #' @rdname spark.naiveBayes
 #' @aliases spark.naiveBayes,SparkDataFrame,formula-method
 #' @name spark.naiveBayes
-#' @seealso e1071: 
\url{https://cran.r-project.org/web/packages/e1071/index.html}
+#' @seealso e1071: \url{https://cran.r-project.org/package=e1071}
 #' @examples
 #' \dontrun{
 #' data <- as.data.frame(UCBAdmissions)
diff --git a/R/pkg/R/mllib_clustering.R b/R/pkg/R/mllib_clustering.R
index ff7cbd8..8bc1535 100644
--- a/R/pkg/R/mllib_clustering.R
+++ b/R/pkg/R/mllib_clustering.R
@@ -204,7 +204,7 @@ setMethod("write.ml", signature(object = 
"BisectingKMeansModel", path = "charact
 #' @return \code{spark.gaussianMixture} returns a fitted multivariate gaussian 
mixture model.
 #' @rdname spark.gaussianMixture
 #' @name spark.gaussianMixture
-#' @seealso mixtools: 
\url{https://cran.r-project.org/web/packages/mixtools/index.html}
+#' @seealso mixtools: \url{https://cran.r-project.org/package=mixtools}
 #' @examples
 #' \dontrun{
 #' sparkR.session()
@@ -483,7 +483,7 @@ setMethod("write.ml", signature(object = "KMeansModel", 
path = "character"),
 #' @return \code{spark.lda} returns a fitted Latent Dirichlet Allocation model.
 #' @rdname spark.lda
 #' @aliases spark.lda,SparkDataFrame-method
-#' @seealso topicmodels: 
\url{https://cran.r-project.org/web/packages/topicmodels/index.html}
+#' @seealso topicmodels: \url{https://cran.r-project.org/package=topicmodels}
 #' @examples
 #' \dontrun{
 #' text <- read.df("data/mllib/sample_lda_libsvm_data.txt", source = "libsvm")
diff --git a/R/pkg/R/mllib_regression.R b/R/pkg/R/mllib_regression.R
index db9f367..b2228a1 100644
--- a/R/pkg/R/mllib_regression.R
+++ b/R/pkg/R/mllib_regression.R
@@ -475,7 +475,7 @@ setMethod("write.ml", signature(object = 
"IsotonicRegressionModel", path = "char
 #' @param ... additional arguments passed to the method.
 #' @return \code{spark.survreg} returns a fitted AFT survival regression model.
 #' @rdname spark.survreg
-#' @seealso survival: 
\url{https://cran.r-project.org/web/packages/survival/index.html}
+#' @seealso survival: \url{https://cran.r-project.org/package=survival}
 #' @examples
 #' \dontrun{
 #' df <- createDataFrame(ovarian)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to