You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
1.3 KiB

3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
  1. ---
  2. output: rmarkdown::github_document
  3. editor_options:
  4. chunk_output_type: console
  5. ---
  6. ```{r pkg-knitr-opts, include=FALSE}
  7. hrbrpkghelpr::global_opts()
  8. ```
  9. ```{r badges, results='asis', echo=FALSE, cache=FALSE}
  10. hrbrpkghelpr::stinking_badges()
  11. ```
  12. ```{r description, results='asis', echo=FALSE, cache=FALSE}
  13. hrbrpkghelpr::yank_title_and_description()
  14. ```
  15. ## What's Inside The Tin
  16. The following functions are implemented:
  17. ```{r ingredients, results='asis', echo=FALSE, cache=FALSE}
  18. hrbrpkghelpr::describe_ingredients()
  19. ```
  20. ## Installation
  21. ```{r install-ex, results='asis', echo=FALSE, cache=FALSE}
  22. hrbrpkghelpr::install_block()
  23. ```
  24. ## Usage
  25. ```{r lib-ex}
  26. library(httr2curl)
  27. # current version
  28. packageVersion("httr2curl")
  29. ```
  30. ### Using local perl
  31. ```{r ex01}
  32. h2c(
  33. httr::GET(
  34. url = "https://rud.is/",
  35. httr::user_agent(splashr::ua_apple_tv),
  36. query = list(
  37. a = "b",
  38. c = 1
  39. )
  40. )
  41. )
  42. ```
  43. ### Using the web service
  44. ```{r ex02}
  45. h2c(
  46. httr::GET(
  47. url = "https://rud.is/",
  48. httr::user_agent(splashr::ua_apple_tv),
  49. query = list(
  50. a = "b",
  51. c = 1
  52. )
  53. ),
  54. use_web_service = TRUE
  55. )
  56. ```
  57. ## httr2curl Metrics
  58. ```{r cloc, echo=FALSE}
  59. cloc::cloc_pkg_md()
  60. ```
  61. ## Code of Conduct
  62. Please note that this project is released with a Contributor Code of
  63. Conduct. By participating in this project you agree to abide by its
  64. terms.