Skip to content

Commit

Permalink
prepare submission to CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
schochastics committed Nov 30, 2022
1 parent aded786 commit 6415b1f
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: rtoot
Title: Collecting and Analyzing Mastodon Data
Version: 0.1.0.9000
Version: 0.2.0
Authors@R:
c(person("David", "Schoch", , "[email protected]", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-2952-4812")),
person("Chung-hong", "Chan", ,"[email protected]", role = c("aut"), comment = c(ORCID = "0000-0002-6232-7530")),
Expand Down
7 changes: 4 additions & 3 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# rtoot (development version)
# rtoot 0.2.0

* possible to set token via environment variable (#68)
* paginating results (#70)
* adding ratelimit checking (#43)
* added ratelimit checking (#43)
* added pkgdown site (#79)
* added streaming (#84)
* added streaming functions `stream_*` (#84)
* added more instance endpoints (#34)

# rtoot 0.1.0

Expand Down
2 changes: 2 additions & 0 deletions R/stream_statuses.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#' \item{stream_timeline_list}{stream the statuses of a list}
#' }
#' @export
#' @return does not return anything. Statuses are written to file
#' @examples
#' \dontrun{
#' # stream public timeline for 30 seconds
Expand Down Expand Up @@ -112,6 +113,7 @@ stream_timeline_list <- function(
#' @export
#' @details The stream sometimes returns invalid lines of json. These are automatically skipped. Parsing can be slow if your json contains a large amount of statuses
#' @seealso `stream_timeline_public()`, `stream_timeline_hashtag()`,`stream_timeline_list()`
#' @return a tibble of statuses
#' @examples
#' \dontrun{
#' stream_timeline_public(1,file_name = "stream.json")
Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ make_get_request <- function(token, path, params = list(), instance = NULL, anon
config <- httr::add_headers(Authorization = paste('Bearer', token$bearer))
} else {
url <- prepare_url(instance)
config = list()
config <- list()
}

request_results <- httr::GET(httr::modify_url(url, path = path),
Expand Down
2 changes: 0 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ You can install the development version of rtoot from GitHub:
devtools::install_github("schochastics/rtoot")
```

*(The current dev version has many more features than the current version on CRAN)*

## Authenticate

First you should set up your own credentials (see also `vignette("auth")`)
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ You can install the development version of rtoot from GitHub:
devtools::install_github("schochastics/rtoot")
```

*(The current dev version has many more features than the current
version on CRAN)*

## Authenticate

First you should set up your own credentials (see also
Expand Down
13 changes: 6 additions & 7 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
## Resubmission of Initial Submission
## Update from 0.1.0 to 0.2.0

This update includes new functions to live stream toots and pagination of results as well
as ratelimit checking

This is the Resubmission of the initial submission of the rtoot package.
This submission fixes the missing return values in two functions.
*(dontrun examples are used to not make unnecessary API calls)*

# Test environments
* ubuntu 20.04, R 4.2.1
* ubuntu 20.04, R 4.2.2
* win-builder (devel and release)

## R CMD check results

0 errors | 0 warnings | 1 note

* This is a new release.
0 errors | 0 warnings | 0 notes
3 changes: 3 additions & 0 deletions man/parse_stream.Rd

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

3 changes: 3 additions & 0 deletions man/stream_timeline.Rd

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

0 comments on commit 6415b1f

Please sign in to comment.