Skip to content

Commit

Permalink
Merge pull request #153 from taxonomicallyinformedannotation/dev
Browse files Browse the repository at this point in the history
Come back to old working setwd version
  • Loading branch information
Adafede authored Jul 5, 2024
2 parents 7d516cd + 91e9334 commit 4bbc2c8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@
"SystemRequirements": null
},
"keywords": ["metaboliteannotation", "chemotaxonomy", "scoringsystem", "naturalproducts", "computationalmetabolomics", "taxonomicdistance", "specializedmetabolome"],
"fileSize": "4394.917KB",
"fileSize": "4381.322KB",
"citation": [
{
"@type": "ScholarlyArticle",
Expand Down
30 changes: 15 additions & 15 deletions inst/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -2194,18 +2194,18 @@ server <- function(input, output, session) {
}
url <- "<http://127.0.0.1:3838>"
log_debug("Please, open:", url, "on your favorite browser, but not Edge.")
dir <- if (i_am_a_whale) {
message("I\'m inside the matrix ;(")
".."
} else {
cache <- fs::path_home(".tima")
fs::dir_create(cache)
message("Working in ", cache)
cache
}
withr::with_dir(new = dir, code = {
shinyApp(
ui = ui,
server = server
)
})
shinyApp(
ui = ui,
server = server,
onStart = function() {
if (i_am_a_whale) {
message("I\'m inside the matrix ;(")
setwd(dir = "..")
} else {
cache <- fs::path_home(".tima")
fs::dir_create(cache)
message("Working in ", cache)
setwd(dir = cache)
}
}
)

0 comments on commit 4bbc2c8

Please sign in to comment.