Skip to content

Commit f72b906

Browse files
HyukjinKwondongjoon-hyun
authored andcommitted
[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 apache#31759 from HyukjinKwon/minor-doc-fixes. Authored-by: HyukjinKwon <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 1fd7368 commit f72b906

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

R/DOCUMENTATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ license: |
1919
# SparkR Documentation
2020

2121
SparkR documentation is generated by using in-source comments and annotated by using
22-
[`roxygen2`](https://cran.r-project.org/web/packages/roxygen2/index.html). After making changes to the documentation and generating man pages,
22+
[`roxygen2`](https://cran.r-project.org/package=roxygen2). After making changes to the documentation and generating man pages,
2323
you can run the following from an R console in the SparkR home directory
2424
```R
2525
library(devtools)

R/pkg/R/mllib_classification.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ setMethod("write.ml", signature(object = "MultilayerPerceptronClassificationMode
574574
#' @rdname spark.naiveBayes
575575
#' @aliases spark.naiveBayes,SparkDataFrame,formula-method
576576
#' @name spark.naiveBayes
577-
#' @seealso e1071: \url{https://cran.r-project.org/web/packages/e1071/index.html}
577+
#' @seealso e1071: \url{https://cran.r-project.org/package=e1071}
578578
#' @examples
579579
#' \dontrun{
580580
#' data <- as.data.frame(UCBAdmissions)

R/pkg/R/mllib_clustering.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ setMethod("write.ml", signature(object = "BisectingKMeansModel", path = "charact
204204
#' @return \code{spark.gaussianMixture} returns a fitted multivariate gaussian mixture model.
205205
#' @rdname spark.gaussianMixture
206206
#' @name spark.gaussianMixture
207-
#' @seealso mixtools: \url{https://cran.r-project.org/web/packages/mixtools/index.html}
207+
#' @seealso mixtools: \url{https://cran.r-project.org/package=mixtools}
208208
#' @examples
209209
#' \dontrun{
210210
#' sparkR.session()
@@ -483,7 +483,7 @@ setMethod("write.ml", signature(object = "KMeansModel", path = "character"),
483483
#' @return \code{spark.lda} returns a fitted Latent Dirichlet Allocation model.
484484
#' @rdname spark.lda
485485
#' @aliases spark.lda,SparkDataFrame-method
486-
#' @seealso topicmodels: \url{https://cran.r-project.org/web/packages/topicmodels/index.html}
486+
#' @seealso topicmodels: \url{https://cran.r-project.org/package=topicmodels}
487487
#' @examples
488488
#' \dontrun{
489489
#' text <- read.df("data/mllib/sample_lda_libsvm_data.txt", source = "libsvm")

R/pkg/R/mllib_regression.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ setMethod("write.ml", signature(object = "IsotonicRegressionModel", path = "char
475475
#' @param ... additional arguments passed to the method.
476476
#' @return \code{spark.survreg} returns a fitted AFT survival regression model.
477477
#' @rdname spark.survreg
478-
#' @seealso survival: \url{https://cran.r-project.org/web/packages/survival/index.html}
478+
#' @seealso survival: \url{https://cran.r-project.org/package=survival}
479479
#' @examples
480480
#' \dontrun{
481481
#' df <- createDataFrame(ovarian)

0 commit comments

Comments
 (0)