[ 
https://issues.apache.org/jira/browse/SPARK-38174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17490877#comment-17490877
 ] 

Maciej Szymkiewicz commented on SPARK-38174:
--------------------------------------------

Done some more digging, and I believe it has been caused by malformed response 
from [https://cran.rstudio.com/web/packages/packages.rds.]

{{histogram}} example loads {{ggplot2}}

https://github.com/apache/spark/blob/d4a2e5c55d127218f6ae42925443f7d0588d5875/R/pkg/R/DataFrame.R#L3645

which caused attempt to fetch data from CRAN:

https://github.com/r-lib/downlit/blob/d5622d665ebe4d3529b297aa926fe3c0132c8b81/R/metadata.R#L132-L137

and {{CRAN_package_db}} loads RDS object

{code:r}
> tools::CRAN_package_db
function () 
as.data.frame(read_CRAN_object(CRAN_baseurl_for_web_area(), 
"web/packages/packages.rds"), 
    stringsAsFactors = FALSE)

{code}

If the problem repeats we might try to see if setting 
{{deploy.install_metadata: true}} in pkgdown and installing {{ggplot2}} (and 
other incidental doc build dependencies), resolves the issue.

 


> SparkR documentation build fails in CI
> --------------------------------------
>
>                 Key: SPARK-38174
>                 URL: https://issues.apache.org/jira/browse/SPARK-38174
>             Project: Spark
>          Issue Type: Test
>          Components: Build, SparkR
>    Affects Versions: 3.3.0
>            Reporter: Hyukjin Kwon
>            Priority: Major
>
> SparkR documentation job in GitHub Actions seems to be broken now as below 
> (https://github.com/apache/spark/runs/5138914521?check_suite_focus=true):
> {code}
> Writing 'reference/head.html'
> Reading 'man/hint.Rd'
> Writing 'reference/hint.html'
> Reading 'man/histogram.Rd'
> Error in .f(.x[[i]], ...) : Failed to parse Rd in histogram.Rd
> ℹ ReadItem: unknown type 73, perhaps written by later version of R
> Caused by error in `readRDS()`:
> ! ReadItem: unknown type 73, perhaps written by later version of R
> Error: <callr_status_error: callr subprocess failed: Failed to parse Rd in 
> histogram.Rd
> ℹ ReadItem: unknown type 73, perhaps written by later version of R
> Caused by error in `readRDS()`:
> ! ReadItem: unknown type 73, perhaps written by later version of R>
> -->
> <callr_remote_error in .f(.x[[i]], ...):
>  Failed to parse Rd in histogram.Rd
> ℹ ReadItem: unknown type 73, perhaps written by later version of R
> Caused by error in `readRDS()`:
> ! ReadItem: unknown type 73, perhaps written by later version of R>
>  in process 13417 
>  Stack trace:
>  Process 13346:
>  1. pkgdown::build_site("..")
>  2. pkgdown:::build_site_external(pkg = pkg, examples = examples,  ...
>  3. callr::r(function(..., crayon_enabled, crayon_colors, pkgdown_internet) { 
> ...
>  4. callr:::get_result(output = out, options)
>  5. throw(newerr, parent = remerr[[2]])
>  x callr subprocess failed: Failed to parse Rd in histogram.Rd
> ℹ ReadItem: unknown type 73, perhaps written by later version of R
> Caused by error in `readRDS()`:
> ! ReadItem: unknown type 73, perhaps written by later version of R 
>  Process 13417:
>  17. (function (..., crayon_enabled, crayon_colors, pkgdown_internet)  ...
>  18. pkgdown::build_site(...)
>  19. pkgdown:::build_site_local(pkg = pkg, examples = examples, run_do ...
>  20. pkgdown:::build_reference(pkg, lazy = lazy, examples = examples,  ...
>  21. purrr::map(topics, build_reference_topic, pkg = pkg, lazy = lazy,  ...
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to