You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "eitsupi (via GitHub)" <gi...@apache.org> on 2023/04/13 15:36:56 UTC

[GitHub] [arrow] eitsupi commented on a diff in pull request #35103: GH-34907: [Docs][R] Version selector reports that release version is dev

eitsupi commented on code in PR #35103:
URL: https://github.com/apache/arrow/pull/35103#discussion_r1165713754


##########
r/vignettes/prevdocs.Rmd:
##########
@@ -0,0 +1,12 @@
+---
+title: "Current and Older Versions of this Documentation"
+output: rmarkdown::html_vignette
+---
+
+```{r, echo=FALSE}
+versions <- jsonlite::read_json("https://arrow.apache.org/docs/r/versions.json")
+```
+
+`r paste(purrr::map(versions, ~paste("[",.x$name, "](../", .x$version, "r/)\n\n", sep=""), collapse = ""), collapse = "")`

Review Comment:
   If this is the intent, please ignore it, but I think using `results="asis"` r code chunk here would make it easier to see this code.
   https://bookdown.org/yihui/rmarkdown-cookbook/results-asis.html



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org