๐
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # install new xgb library to main install loc | |
| pak::pkg_install("xgboost") | |
| # install old xgb library to temporary location | |
| old_xgb_lib <- "~/temp_xgb_lib" | |
| pak::pkg_install("cran/[email protected]", lib = old_xgb_lib, dependencies = FALSE) | |
| update_xgb <- function(local_file, old_xgb_lib = "~/temp_xgb_lib") { | |
| # unload any loaded version of xgboost | |
| unloadNamespace("xgboost") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ``` r | |
| print(pi) | |
| #> [1] 3.141593 | |
| ``` | |
| <sup>Created on 2025-09-19 with [reprex v2.1.1](https://reprex.tidyverse.org)</sup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ``` r | |
| print(pi) | |
| #> [1] 3.141593 | |
| ``` | |
| <sup>Created on 2025-09-19 with [reprex v2.1.1](https://reprex.tidyverse.org)</sup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ``` r | |
| print(pi) | |
| #> [1] 3.141593 | |
| ``` | |
| <sup>Created on 2025-09-19 with [reprex v2.1.1](https://reprex.tidyverse.org)</sup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ``` r | |
| print(pi) | |
| #> [1] 3.141593 | |
| ``` | |
| <sup>Created on 2025-09-19 with [reprex v2.1.1](https://reprex.tidyverse.org)</sup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ``` r | |
| print(pi) | |
| #> [1] 3.141593 | |
| ``` | |
| <sup>Created on 2025-09-19 with [reprex v2.1.1](https://reprex.tidyverse.org)</sup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ``` r | |
| print(pi) | |
| #> [1] 3.141593 | |
| ``` | |
| <sup>Created on 2025-09-19 with [reprex v2.1.1](https://reprex.tidyverse.org)</sup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ``` r | |
| print(pi) | |
| #> [1] 3.141593 | |
| ``` | |
| <sup>Created on 2025-09-19 with [reprex v2.1.1](https://reprex.tidyverse.org)</sup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ``` r | |
| print("pie") | |
| #> [1] "pie" | |
| ``` | |
| <sup>Created on 2025-09-19 with [reprex v2.1.1](https://reprex.tidyverse.org)</sup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(shiny) | |
| library(ggplot2) | |
| ui <- fluidPage( | |
| selectInput("var", choices = names(mtcars),label = "choose column"), | |
| br(), | |
| plotOutput("plot") | |
| ) | |
| server <- function(input, output, session) { | |
| output$plot <- renderPlot({ |
NewerOlder