Skip to content

Commit

Permalink
reknit readme, update documentation for athl_fun and athlind_fun
Browse files Browse the repository at this point in the history
  • Loading branch information
fawda123 committed Oct 15, 2023
1 parent 5a3ad68 commit c770b81
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 18 deletions.
2 changes: 1 addition & 1 deletion R/athl_fun.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#'
#' @concept notoken
#'
#' @return A list for each athlete, where each element is an additional list with elements for the athlete name, location, units of measurement, monthly data, recent activities, and achievements. The list elements are named using the athlete id numbers. \code{NA} will be returned if the data for an athlete could not be accessed.
#' @return A list for each athlete, where each element is an additional list with elements for the athlete's information. The list elements are named using the athlete id numbers.
#'
#' @examples
#' ## single athlete
Expand Down
2 changes: 1 addition & 1 deletion R/athlind_fun.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#'
#' @export
#'
#' @return A list with elements for the athlete name, location, units of measurement, monthly data, recent activities, and achievements.
#' @return A list with elements for the athlete's information.
athlind_fun <- function(athl_num){

# get unparsed url text using input
Expand Down
26 changes: 12 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,24 +65,22 @@ athl_fun(2837007, trace = FALSE)
## $`2837007`$location
## [1] "Saint Petersburg, Florida"
##
## $`2837007`$units
## [1] "mi" "ft"
## $`2837007`$follow
## Followers Following
## 1 79 82
##
## $`2837007`$monthly
## month miles hours elev_gain
## 1 2022-11-01 45.55707 6 195
## 2 2022-12-01 62.25518 8 983
## 3 2023-01-01 112.87767 12 273
## 4 2023-02-01 74.15133 9 109
## 5 2023-03-01 94.99336 11 227
## 6 2023-04-01 77.32219 9 98
## 7 2023-05-01 69.49664 8 87
## Distance Moving Time
## 1 12.0 mi 5:54:18
##
## $`2837007`$recent
## id name type startDateLocal distance elevation movingTime
## 1 9130931408 Morning Ride ride 2023-05-24 2.7 11 10:52
## 2 9130716559 Morning Run run 2023-05-24 3.2 12 26:35
## 3 9128167016 Afternoon Ride ride 2023-05-23 2.7 20 12:43
## Date Name Time
## 1 October 13, 2023 Evening Ride 41:03
## 2 October 12, 2023 Afternoon Ride 40:40
## 3 October 9, 2023 Afternoon Ride 42:28
##
## $`2837007`$trophies
## list()
##
## $`2837007`$achievements
## list()
Expand Down
2 changes: 1 addition & 1 deletion man/athl_fun.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/athlind_fun.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified man/figures/unnamed-chunk-13-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/unnamed-chunk-14-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/unnamed-chunk-14-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/unnamed-chunk-18-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c770b81

Please sign in to comment.