Open ramattos7 opened 3 years ago
Hi there,
Thanks for reaching out with this error. What I think has happened is that for some reason the base R function file.exists
is returning a zero length list when checking for the existence VOSON Dash API keys files in your user home directory upon startup. This is unusual and I'm wondering if perhaps you are using Linux or OSX with access restrictions?
You can manually check the problem by typing the following into the RStudio console:
# check your OS environment registered home directory
Sys.getenv("HOME")
# check the result of the file.exists check is TRUE or FALSE
file.exists(paste0(Sys.getenv("HOME"), "/vosondash_keys.rds", sep = ""))
These will indicate if the problem is indeed with file.exists
.
There is also a VOSONDash startup parameter that will skip the checking of key files and get you running but you will not be able to save any API keys or tokens. You can start the app as follows:
runVOSONDash(isLocal = FALSE)
Thanks again and let me know how you go.
Hi there, Thanks for the answer. I'm using Windows. I did what you said and got:
check your OS environment registered home directory
Sys.getenv ("HOME") [1] "C: \ Users \ ramat \ Documents"
check the result of the file.exists check is TRUE or FALSE
file.exists (paste0 (Sys.getenv ("HOME"), "/vosondash_keys.rds", sep = "")) [1] TRUE
However, I was able to use the dashboard from the command
runVOSONDash(isLocal = FALSE)
Thanks again
Wanted to say that I was running into the same issue. The problem for me was that I was trying to launch the Dash using VOSONDash::runVOSONDash()
. My issue was solve after first loading the VOSONDash library, then running runVOSONDash()
. Hopefully my solution might be useful to someone facing a similar issue.
Thank you for letting me know about your solution! I will have a look more into the scope and loading of keys when direct package function call for the next update.
When I try to run VOSONDash in Rstudio, it is redirected to the browser and the dashboard buttons are unusable. In Rstudio, the following error message appears:
Warning: Error in if: argument is of length zero 74: isolate 73: observeEventHandler [server/apiKeysServer.R#25] 2: shiny::runApp 1: runVOSONDash Session ended or browser closed. Exiting.