Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0417c25

Browse files
Disable pretty JSON by default
1 parent98f6868 commit0417c25

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

‎R/arena.R‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,19 +207,20 @@ arena_push_observations.arena_live <- function(arena, observations) {
207207
#' @param open_browser Whether to open browser with new session
208208
#' @param append_data Whether to append data to already existing session
209209
#' @param arena_url URL of Arena dashboard instance
210+
#' @param pretty whether to generate pretty and easier to debug JSON
210211
#' @return not modified arena object
211212
#' @export
212213
#' @importFrom methods is
213214
arena_upload<-function (arena,open_browser=TRUE,append_data=FALSE,
214-
arena_url="https://arena.drwhy.ai/") {
215+
arena_url="https://arena.drwhy.ai/",pretty=FALSE) {
215216
if (is.null(arena)||!is(arena,"arena_static")) {
216217
stop("Invalid arena argument")
217218
}
218219
# generate json string
219220
json<-jsonlite::toJSON(
220221
get_json_structure(arena),
221222
auto_unbox=TRUE,
222-
pretty=TRUE
223+
pretty=pretty
223224
)
224225
# upload json to gist
225226
gist<-gistr::gist_create(

‎man/arena_upload.Rd‎

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp