Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open card hyperlinks in a new tab #828

Merged
merged 11 commits into from
Jan 10, 2025
2 changes: 1 addition & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- uses: r-lib/actions/setup-r@v2
with:
r-version: 'renv'
use-public-rspm: true
use-public-rspm: false
- uses: r-lib/actions/setup-renv@v2

- name: Install riskassessment
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: riskassessment
Title: A web app designed to interface with the `riskmetric` package
Version: 3.1.1.9000
Version: 3.1.1.9001
Authors@R: c(
person("Aaron", "Clark", role = c("aut", "cre"), email = "clark.aaronchris@gmail.com"),
person("Jeff", "Thompson", role = c("aut"), email = "jeff.thompson51317@gmail.com", comment = "Co-Lead"),
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# riskassessment (development version)

* Open hyperlinks in a new tab from cards.

# riskassessment 3.1.1

* Added navigation controls in Function Explorer tab (#644)
Expand Down
2 changes: 1 addition & 1 deletion R/mod_metricBox.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ metricBoxServer <- function(id, title, desc, value, score = "NULL",
} else if (is_url) {
value <- a(ifelse(nchar(value) <= val_max_nchar, value,
glue::glue("{stringr::str_sub(value, 1, (val_max_nchar - 3))}...")
), href = value)
), target = "_blank", href = value)
} # unfortunately, adding the href can sometimes force the footer to fall
# outside the card when val_max_nchar is too large.
else if (value %in% c("TRUE", "FALSE")) {
Expand Down
2 changes: 1 addition & 1 deletion inst/report_downloads/reportHtml.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ createCard <- function(title, desc, value, score = "NULL",
else if(is_url)
value <- a(ifelse(nchar(value) <= val_max_nchar, value,
glue::glue('{stringr::str_sub(value, 1, (val_max_nchar - 3))}...')
), href = value)
), target = "_blank", href = value)
# unfortunately, adding the href can sometimes force the footer to fall
# outside the card when val_max_nchar is too large.
else if(value %in% c('TRUE', 'FALSE'))
Expand Down
62 changes: 31 additions & 31 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
"Maintainer": "Brian Ripley <ripley@stats.ox.ac.uk>",
"Repository": "CRAN",
"Date/Publication": "2024-01-13 13:36:16 UTC",
"Built": "R 4.3.3; x86_64-pc-linux-gnu; 2024-08-01 23:58:31 UTC; unix"
"Built": "R 4.3.3; x86_64-pc-linux-gnu; 2024-11-07 07:01:18 UTC; unix"
}
},
"Matrix": {
Expand Down Expand Up @@ -201,7 +201,7 @@
"Maintainer": "Martin Maechler <mmaechler+Matrix@gmail.com>",
"Repository": "CRAN",
"Date/Publication": "2024-01-11 17:50:15 UTC",
"Built": "R 4.3.3; x86_64-pc-linux-gnu; 2024-08-01 23:58:46 UTC; unix"
"Built": "R 4.3.3; x86_64-pc-linux-gnu; 2024-11-07 07:01:34 UTC; unix"
}
},
"R.methodsS3": {
Expand Down Expand Up @@ -414,7 +414,7 @@
"Packaged": "2020-08-26 17:46:45.898451 UTC; edd",
"Repository": "RSPM",
"Date/Publication": "2020-08-27 11:40:21 UTC",
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-07-18 06:49:15 UTC; unix"
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2023-05-18 19:12:56 UTC; unix"
}
},
"archive": {
Expand Down Expand Up @@ -940,7 +940,7 @@
"RoxygenNote": "7.3.0",
"Author": "Sebastien Rochette [aut, cre] (<https://orcid.org/0000-0002-1565-9313>),\n Vincent Guyader [aut] (<https://orcid.org/0000-0003-0671-9270>),\n Arthur Bréant [aut] (<https://orcid.org/0000-0003-1668-0963>),\n Murielle Delmotte [aut] (<https://orcid.org/0000-0002-1339-2424>),\n ThinkR [cph]",
"Maintainer": "Sebastien Rochette <sebastien@thinkr.fr>",
"Built": "R 4.3.3; ; 2024-08-05 13:07:36 UTC; unix",
"Built": "R 4.3.3; ; 2025-01-09 16:16:06 UTC; unix",
"RemoteType": "github",
"RemoteUsername": "thinkr-open",
"RemoteRepo": "checkhelper",
Expand Down Expand Up @@ -1303,7 +1303,7 @@
"Imports": "callr,\ncranlike (>= 1.0.2),\ncurl,\ndesc (>= 1.1.0),\ndigest,\nparsedate,\nrappdirs,\nrematch2,\ntools,\nutils,\nwithr",
"Suggests": "covr,\npingr,\ntestthat,\nzip",
"Encoding": "UTF-8",
"Built": "R 4.3.3; ; 2024-08-05 13:07:44 UTC; unix",
"Built": "R 4.3.3; ; 2025-01-09 16:16:14 UTC; unix",
"RemoteType": "github",
"RemoteHost": "api.github.com",
"RemoteUsername": "r-lib",
Expand Down Expand Up @@ -2206,7 +2206,7 @@
"Maintainer": "David Gohel <david.gohel@ardata.fr>",
"Repository": "RSPM",
"Date/Publication": "2024-03-05 05:30:36 UTC",
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-07-18 07:39:09 UTC; unix"
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-06-26 20:51:59 UTC; unix"
}
},
"generics": {
Expand Down Expand Up @@ -2617,7 +2617,7 @@
"Maintainer": "Hadley Wickham <hadley@posit.co>",
"Repository": "RSPM",
"Date/Publication": "2023-11-30 15:10:02 UTC",
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-06-26 20:49:38 UTC; unix"
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-12-05 04:20:50 UTC; unix"
}
},
"here": {
Expand Down Expand Up @@ -2818,7 +2818,7 @@
"Maintainer": "Winston Chang <winston@posit.co>",
"Repository": "RSPM",
"Date/Publication": "2024-03-26 05:50:06 UTC",
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-07-18 06:39:42 UTC; unix"
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-11-28 04:14:37 UTC; unix"
}
},
"httr": {
Expand Down Expand Up @@ -2905,7 +2905,7 @@
"Maintainer": "Jeroen Ooms <jeroen@berkeley.edu>",
"Repository": "RSPM",
"Date/Publication": "2023-10-06 07:10:02 UTC",
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-07-18 07:08:15 UTC; unix"
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2023-10-09 11:49:37 UTC; unix"
}
},
"ids": {
Expand Down Expand Up @@ -3147,7 +3147,7 @@
"Maintainer": "Winston Chang <winston@posit.co>",
"Repository": "RSPM",
"Date/Publication": "2023-12-06 09:10:05 UTC",
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-07-18 06:30:24 UTC; unix"
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2023-12-07 11:15:13 UTC; unix"
}
},
"lattice": {
Expand Down Expand Up @@ -3429,7 +3429,7 @@
"Packaged": "2023-12-20 10:39:06 UTC; sw283",
"Repository": "CRAN",
"Date/Publication": "2023-12-21 00:30:02 UTC",
"Built": "R 4.3.3; x86_64-pc-linux-gnu; 2024-08-02 00:01:34 UTC; unix"
"Built": "R 4.3.3; x86_64-pc-linux-gnu; 2024-11-07 07:04:41 UTC; unix"
}
},
"mime": {
Expand Down Expand Up @@ -3562,7 +3562,7 @@
"Maintainer": "R Core Team <R-core@R-project.org>",
"Repository": "CRAN",
"Date/Publication": "2023-11-27 15:26:12 UTC",
"Built": "R 4.3.3; x86_64-pc-linux-gnu; 2024-08-02 00:00:23 UTC; unix"
"Built": "R 4.3.3; x86_64-pc-linux-gnu; 2024-11-07 07:03:17 UTC; unix"
}
},
"officer": {
Expand Down Expand Up @@ -4050,7 +4050,7 @@
"Maintainer": "Joe Cheng <joe@posit.co>",
"Repository": "RSPM",
"Date/Publication": "2024-04-05 15:00:06 UTC",
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-07-18 06:34:47 UTC; unix"
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-06-26 20:47:00 UTC; unix"
}
},
"ps": {
Expand Down Expand Up @@ -4226,7 +4226,7 @@
"Maintainer": "Jennifer Bryan <jenny@posit.co>",
"Repository": "RSPM",
"Date/Publication": "2024-01-10 23:20:02 UTC",
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-06-26 20:48:28 UTC; unix"
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-12-05 04:19:24 UTC; unix"
}
},
"readxl": {
Expand Down Expand Up @@ -4257,7 +4257,7 @@
"Maintainer": "Jennifer Bryan <jenny@posit.co>",
"Repository": "RSPM",
"Date/Publication": "2023-07-06 22:00:09 UTC",
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2023-12-07 11:15:38 UTC; unix"
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-12-05 04:17:28 UTC; unix"
}
},
"rematch": {
Expand Down Expand Up @@ -4367,7 +4367,7 @@
"Maintainer": "Kevin Ushey <kevin@rstudio.com>",
"Repository": "RSPM",
"Date/Publication": "2024-02-29 01:10:07 UTC",
"Built": "R 4.3.3; ; 2024-08-05 13:19:01 UTC; unix"
"Built": "R 4.3.3; ; 2025-01-10 17:24:24 UTC; unix"
}
},
"reprex": {
Expand Down Expand Up @@ -4425,7 +4425,7 @@
"RoxygenNote": "7.2.3",
"Author": "Gábor Csárdi [cre, aut, cph],\n Hadley Wickham [aut],\n RConsortium [cph],\n RStudio [cph, fnd]",
"Maintainer": "Gábor Csárdi <csardi.gabor@gmail.com>",
"Built": "R 4.3.3; ; 2024-08-05 13:08:16 UTC; unix",
"Built": "R 4.3.3; ; 2025-01-09 16:16:46 UTC; unix",
"RemoteType": "github",
"RemoteUsername": "r-lib",
"RemoteRepo": "revdepcheck",
Expand Down Expand Up @@ -4543,7 +4543,7 @@
"Config/testthat/edition": "3",
"Author": "R Validation Hub [aut],\n Doug Kelkhoff [aut],\n Marly Gotti [aut],\n Eli Miller [cre, aut],\n Kevin K [aut],\n Yilong Zhang [aut],\n Eric Milliman [aut],\n Juliane Manitz [aut],\n Mark Padgham [ctb],\n PSI special interest group Application and Implementation of\n Methodologies in Statistics [cph]",
"Maintainer": "Eli Miller <eli.miller@atorusresearch.com>",
"Built": "R 4.3.3; ; 2024-08-05 13:08:22 UTC; unix",
"Built": "R 4.3.3; ; 2025-01-09 16:16:52 UTC; unix",
"RemoteType": "github",
"RemoteUsername": "pharmaR",
"RemoteRepo": "riskmetric",
Expand Down Expand Up @@ -4862,7 +4862,7 @@
"Repository": "RSPM",
"Date/Publication": "2023-01-29 15:40:02 UTC",
"Encoding": "UTF-8",
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-07-18 06:27:20 UTC; unix"
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-11-03 07:04:23 UTC; unix"
}
},
"selectr": {
Expand Down Expand Up @@ -5285,7 +5285,7 @@
"Maintainer": "Thomas Lin Pedersen <thomas.pedersen@posit.co>",
"Repository": "RSPM",
"Date/Publication": "2023-12-08 16:20:13 UTC",
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-05-16 04:12:57 UTC; unix"
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-12-05 04:18:22 UTC; unix"
}
},
"sys": {
Expand Down Expand Up @@ -5466,7 +5466,7 @@
"Maintainer": "Hadley Wickham <hadley@posit.co>",
"Repository": "RSPM",
"Date/Publication": "2024-01-24 14:50:09 UTC",
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-06-26 20:47:29 UTC; unix"
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-12-05 04:17:45 UTC; unix"
}
},
"tidyselect": {
Expand Down Expand Up @@ -5552,7 +5552,7 @@
"Maintainer": "Vitalie Spinu <spinuvit@gmail.com>",
"Repository": "RSPM",
"Date/Publication": "2024-01-18 09:20:02 UTC",
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-06-26 20:44:50 UTC; unix"
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-12-05 04:17:18 UTC; unix"
}
},
"tinytex": {
Expand Down Expand Up @@ -5606,7 +5606,7 @@
"Packaged": "2023-03-04 21:40:31 UTC; ironholds",
"Repository": "RSPM",
"Date/Publication": "2023-03-04 23:30:07 UTC",
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-07-18 06:45:50 UTC; unix"
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-11-03 07:03:38 UTC; unix"
}
},
"tzdb": {
Expand Down Expand Up @@ -5635,7 +5635,7 @@
"Maintainer": "Davis Vaughan <davis@posit.co>",
"Repository": "RSPM",
"Date/Publication": "2023-05-12 23:00:02 UTC",
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-06-26 20:44:50 UTC; unix"
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-12-05 04:17:17 UTC; unix"
}
},
"urlchecker": {
Expand Down Expand Up @@ -5691,7 +5691,7 @@
"Packaged": "2019-04-14 22:25:08 UTC; ironholds",
"Repository": "RSPM",
"Date/Publication": "2019-04-14 23:02:47 UTC",
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-07-18 07:11:18 UTC; unix"
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-11-03 07:15:44 UTC; unix"
}
},
"usethis": {
Expand Down Expand Up @@ -5861,7 +5861,7 @@
"Maintainer": "Jennifer Bryan <jenny@posit.co>",
"Repository": "RSPM",
"Date/Publication": "2023-12-05 23:50:02 UTC",
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-06-26 20:46:55 UTC; unix"
"Built": "R 4.3.0; x86_64-pc-linux-gnu; 2024-12-05 04:17:53 UTC; unix"
}
},
"waldo": {
Expand Down Expand Up @@ -6169,7 +6169,7 @@
"checksum": "5672e25aad19ca20ba7c2d23a8362245"
},
".github/workflows/R-CMD-check.yaml": {
"checksum": "f3b8ba11fdfeb87ccfbca0723895f82f"
"checksum": "4c240fa388edea9f6b99577780395101"
},
".github/workflows/render-readme.yml": {
"checksum": "d74482ddef0a4941a51c077f5ea60e10"
Expand Down Expand Up @@ -6220,7 +6220,7 @@
"checksum": "99c5575cb81828e20a7fe1d205551316"
},
"DESCRIPTION": {
"checksum": "43f16dae5ba2122f4fd55e23f7229a40"
"checksum": "2f9e828b7d8a25e828cbeee499dbbaa7"
},
"inst/app/www/css/community_metrics.css": {
"checksum": "f08eb25c2ee48ac22ed63b0d18994a04"
Expand Down Expand Up @@ -6403,7 +6403,7 @@
"checksum": "449e8dcb07732ecd9a0963bada90e53e"
},
"inst/report_downloads/reportHtml.Rmd": {
"checksum": "0e49db815a61c6698acad37894a9c0c1"
"checksum": "1447f97ade614947f36c34d35d7b4b5f"
},
"inst/report_downloads/reportPdf.Rmd": {
"checksum": "3c7cfa456a7a171df1f10f9c1690718c"
Expand Down Expand Up @@ -6463,7 +6463,7 @@
"checksum": "97d1232340e04c53088bc8f814133dcd"
},
"NEWS.md": {
"checksum": "526767264e37ac9c9f972a5f93d942b3"
"checksum": "a34423a7ebfa4501e7a34e6c97036851"
},
"R/app_config.R": {
"checksum": "c2b61f270b86b6833f0ee39c44a1a440"
Expand Down Expand Up @@ -6526,7 +6526,7 @@
"checksum": "31ad6d7cf277573e4fcca1260e676ee7"
},
"R/mod_metricBox.R": {
"checksum": "92210692560ef3bce21814f437f9643d"
"checksum": "9f62eb6c1b3ea6321dddf7b448ab0996"
},
"R/mod_metricGrid.R": {
"checksum": "a894eb9114e258feb99b76cdca557cd2"
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/pkg_explorer.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pkg_explorer works

"Type: PackagePackage: dplyrTitle: A Grammar of Data ManipulationVersion: 1.1.2Authors@R: c( person(\"Hadley\", \"Wickham\", , \"hadley@posit.co\", role = c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0003-4757-117X\")), person(\"Romain\", \"François\", role = \"aut\", comment = c(ORCID = \"0000-0002-2444-4226\")), person(\"Lionel\", \"Henry\", role = \"aut\"), person(\"Kirill\", \"Müller\", role = \"aut\", comment = c(ORCID = \"0000-0002-1416-3412\")), person(\"Davis\", \"Vaughan\", , \"davis@posit.co\", role = \"aut\", comment = c(ORCID = \"0000-0003-4777-038X\")), person(\"Posit Software, PBC\", role = c(\"cph\", \"fnd\")) )Description: A fast, consistent tool for working with data frame like objects, both in memory and out of memory.License: MIT + file LICENSEURL: https://dplyr.tidyverse.org, https://github.com/tidyverse/dplyrBugReports: https://github.com/tidyverse/dplyr/issuesDepends: R (>= 3.5.0)Imports: cli (>= 3.4.0), generics, glue (>= 1.3.2), lifecycle (>= 1.0.3), magrittr (>= 1.5), methods, pillar (>= 1.9.0), R6, rlang (>= 1.1.0), tibble (>= 3.2.0), tidyselect (>= 1.2.0), utils, vctrs (>= 0.6.0)Suggests: bench, broom, callr, covr, DBI, dbplyr (>= 2.2.1), ggplot2, knitr, Lahman, lobstr, microbenchmark, nycflights13, purrr, rmarkdown, RMySQL, RPostgreSQL, RSQLite, stringi (>= 1.7.6), testthat (>= 3.1.5), tidyr (>= 1.3.0), withrVignetteBuilder: knitrConfig/Needs/website: tidyverse, shiny, pkgdown, tidyverse/tidytemplateConfig/testthat/edition: 3Encoding: UTF-8LazyData: trueRoxygenNote: 7.2.3NeedsCompilation: yesPackaged: 2023-04-19 19:29:34 UTC; hadleywickhamAuthor: Hadley Wickham [aut, cre] (<https://orcid.org/0000-0003-4757-117X>), Romain François [aut] (<https://orcid.org/0000-0002-2444-4226>), Lionel Henry [aut], Kirill Müller [aut] (<https://orcid.org/0000-0002-1416-3412>), Davis Vaughan [aut] (<https://orcid.org/0000-0003-4777-038X>), Posit Software, PBC [cph, fnd]Maintainer: Hadley Wickham <hadley@posit.co>Repository: CRANDate/Publication: 2023-04-20 14:00:03 UTC"
"Type: PackagePackage: dplyrTitle: A Grammar of Data ManipulationVersion: 1.1.2Authors@R: c( person(\"Hadley\", \"Wickham\", , \"hadley@posit.co\", role = c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0003-4757-117X\")), person(\"Romain\", \"François\", role = \"aut\", comment = c(ORCID = \"0000-0002-2444-4226\")), person(\"Lionel\", \"Henry\", role = \"aut\"), person(\"Kirill\", \"Müller\", role = \"aut\", comment = c(ORCID = \"0000-0002-1416-3412\")), person(\"Davis\", \"Vaughan\", , \"davis@posit.co\", role = \"aut\", comment = c(ORCID = \"0000-0003-4777-038X\")), person(\"Posit Software, PBC\", role = c(\"cph\", \"fnd\")) )Description: A fast, consistent tool for working with data frame like objects, both in memory and out of memory.License: MIT + file LICENSEURL: https://dplyr.tidyverse.org, https://github.com/tidyverse/dplyrBugReports: https://github.com/tidyverse/dplyr/issuesDepends: R (>= 3.5.0)Imports: cli (>= 3.4.0), generics, glue (>= 1.3.2), lifecycle (>= 1.0.3), magrittr (>= 1.5), methods, pillar (>= 1.9.0), R6, rlang (>= 1.1.0), tibble (>= 3.2.0), tidyselect (>= 1.2.0), utils, vctrs (>= 0.6.0)Suggests: bench, broom, callr, covr, DBI, dbplyr (>= 2.2.1), ggplot2, knitr, Lahman, lobstr, microbenchmark, nycflights13, purrr, rmarkdown, RMySQL, RPostgreSQL, RSQLite, stringi (>= 1.7.6), testthat (>= 3.1.5), tidyr (>= 1.3.0), withrVignetteBuilder: knitrConfig/Needs/website: tidyverse, shiny, pkgdown, tidyverse/tidytemplateConfig/testthat/edition: 3Encoding: UTF-8LazyData: trueRoxygenNote: 7.2.3NeedsCompilation: yesPackaged: 2023-04-19 19:29:34 UTC; hadleywickhamAuthor: Hadley Wickham [aut, cre] (<https://orcid.org/0000-0003-4757-117X>), Romain François [aut] (<https://orcid.org/0000-0002-2444-4226>), Lionel Henry [aut], Kirill Müller [aut] (<https://orcid.org/0000-0002-1416-3412>), Davis Vaughan [aut] (<https://orcid.org/0000-0003-4777-038X>),"

---

Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-apps/explorer-app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source/
6 changes: 5 additions & 1 deletion tests/testthat/test-pkg_explorer.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ test_that("pkg_explorer works", {
untar(app_tar_loc, exdir = dirname(app_src_loc))
}

app <- shinytest2::AppDriver$new(test_path("test-apps", "explorer-app"))
app <- shinytest2::AppDriver$new(
test_path("test-apps", "explorer-app"),
height = 1080,
width = 1920
)

expect_equal(
app$get_value(output = "src_explorer-is_file"),
Expand Down