Skip to content

Commit 92867e1

Browse files
authoredJul 3, 2024··
Merge pull request #18 from py-b/fix-scipen
prevent scientific notation in query
2 parents 04879a3 + ee921d6 commit 92867e1

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed
 

‎DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: chessR
22
Type: Package
33
Title: Functions to Extract, Clean and Analyse Online Chess Game Data
4-
Version: 1.5.3
4+
Version: 1.5.4
55
Authors@R: c(person("Jason Zivkovic", email = "jase.ziv83@gmail.com",
66
role = c("aut", "cre")),
77
person("Jonathan", "Carroll",

‎NEWS.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# chessR 1.5.4
2+
3+
Bugfix: prevent scientific notation in time queries for `get_raw_lichess()`
4+
(@py-b #18)
5+
6+
***
7+
18
# chessR 1.5.3
29

310
Feature: `get_raw_lichess()` can now be filtered by date with the parameters

‎R/get_raw_lichess.R

+5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ get_raw_lichess <- function(player_names, since = NULL, until = NULL) {
2828

2929
# cat("Extracting ", player_name, " games. Please wait\n")
3030

31+
old_scipen = getOption("scipen")
32+
options(scipen = 1000000)
33+
3134
since_query <- ""
3235
if (!is.null(since)) {
3336
# API parameter since awaits number of milliseconds since 1970-01-01
@@ -42,6 +45,8 @@ get_raw_lichess <- function(player_names, since = NULL, until = NULL) {
4245
until_query <- paste0("&until=", until_integer)
4346
}
4447

48+
options(scipen = old_scipen)
49+
4550
# download the tmp file
4651
tmp <- tempfile()
4752
curl::curl_download(

0 commit comments

Comments
 (0)
Please sign in to comment.