Skip to content

Commit

Permalink
Merge pull request #246 from SCasanova/update_release
Browse files Browse the repository at this point in the history
Update release docs
  • Loading branch information
SCasanova committed Mar 13, 2024
2 parents 901ec08 + 7258e9d commit 3c7007b
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 25 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,29 +29,12 @@ jobs:
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: actions/setup-python@v5
with:
python-version: "3.x"


- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website

- name: setup r-reticulate venv
shell: Rscript {0}
run: |
python_packages <- c("numpy", "fastf1")
library(reticulate)
virtualenv_create("r-reticulate", Sys.which("python"))
virtualenv_install("r-reticulate", python_packages)
path_to_python <- virtualenv_python("r-reticulate")
writeLines(sprintf("RETICULATE_PYTHON=%s", path_to_python),
Sys.getenv("GITHUB_ENV"))
- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ fastf1_http_cache.sqlite
tests/testthat/tst_*
f1dataR.Rproj
/Meta/
/tst_*
/tst_*go
Rplots.pdf
.DS_Store
docs
6 changes: 3 additions & 3 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 1.4.0
Date: 2023-10-03 00:53:59 UTC
SHA: 32ebade39cf41cdbdf714bd9d5bb51ae41cc48b3
Version: 1.5.1
Date: 2024-03-12 02:34:37 UTC
SHA: 4f1476619148cb012d9db2f3646865c30a31fd9b
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: f1dataR
Title: Access Formula 1 Data
Version: 1.5.1
Version: 1.5.1.9000
Authors@R: c(
person("Santiago", "Casanova", , "santiago.casanova@yahoo.com", role = c("aut", "cre", "cph")),
person("Philip", "Bulsink", , "bulsinkp@gmail.com", role = "aut",
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# f1dataR (development version)

# f1dataR 1.5.1

* Added (very soft) deprecation warning to Ergast functions in advance of the Ergast API being defunct in less than 12 months.
Expand Down
1 change: 1 addition & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ get_ergast_content <- function(url) {
# Caches requests at option = 'f1dataR.cache' location, if not 'current', 'last', or 'latest' result requested
# Automatically retries request up to 5 times. Back-off provided in httr2 documentation
# Automatically retries at http if https fails after retries.


ergast_raw <- httr2::request("https://ergast.com/api/f1") %>%
httr2::req_url_path_append(url) %>%
Expand Down
4 changes: 4 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
url: https://scasanova.github.io/f1dataR/
template:
bootstrap: 5

3 changes: 3 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
## Resubmission

This is a bugfix requested by CRAN after some failures of automated testing due to internet resource unavailability.

The package has been updated to fail gracefully if the web resource is unavailable (previous action was a warning or error, case dependent). Further, flexibility on incomplete responses from the web API have been drastically improved.

This version update was requested by 17 March, should there be any issues with this submission please extend this deadline.

Reduced image quality to comply with 5MB tarball limit

## R CMD check results

3 changes: 2 additions & 1 deletion man/get_current_season.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/get_ergast_content.Rd

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

Binary file added vignettes/Thumbs.db
Binary file not shown.

0 comments on commit 3c7007b

Please sign in to comment.