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

browse() opens blank map #249

Open
richardjtelford opened this issue Jan 10, 2022 · 2 comments
Open

browse() opens blank map #249

richardjtelford opened this issue Jan 10, 2022 · 2 comments

Comments

@richardjtelford
Copy link
Contributor

When I run

neotoma::browse(41623)

Opens https://apps.neotomadb.org/explorer/?datasetid=41623 but just shows a blank map in my browser. Last year it was showing the location of the dataset.

I've tried with both firefox and chromium on Ubunutu 18.04

@villegar
Copy link

@richardjtelford I came across the same issue and ended up tweaking the code a bit:
You could run the following inside your R session to create an updated version of browse:

browse.default <- function(x){
  if (length(x) > 1) {
    x <- paste0(x, collapse = ",")
  }
  utils::browseURL(paste0('http://apps.neotomadb.org/Explorer/?datasetids=', x))
  NULL
}

The fix is adding an extra s, to the URL. Instead of https://apps.neotomadb.org/explorer/?datasetid=41623, open the browser with https://apps.neotomadb.org/explorer/?datasetids=41623

Original code for reference:

browse.default <- function(x){
  if (length(x) > 1) {
    x <- paste0(x, collapse = ",")
    utils::browseURL(paste0('http://apps.neotomadb.org/Explorer/?datasetids=', x))
  } else {
    utils::browseURL(paste0('http://apps.neotomadb.org/Explorer/?datasetid=', x))
  }
  NULL
}

@richardjtelford
Copy link
Contributor Author

That works for me - thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants