Skip to content

Commit

Permalink
fix duplicate listing when finding flytable base
Browse files Browse the repository at this point in the history
* Erika reported a case
* Hard to get to the bottom of, but ultimately down to the same base appearing twice
  in the results of flytable_workspaces()
  • Loading branch information
jefferis committed Sep 23, 2024
1 parent e551983 commit 5b00a1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/flytable.R
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ flytable_base_impl <- memoise::memoise(function(base_name=NULL, table=NULL, url,
if(is.null(workspace_id)) {
wsdf=flytable_workspaces(ac=NULL)
wsdf.sel=subset(wsdf, wsdf$name == base_name)
wsdf.sel=subset(wsdf.sel, !duplicated(wsdf.sel$workspace_id))
if(nrow(wsdf.sel)==0)
stop("Unable to find a workspace containing basename:", base_name,
"\nCheck basename and/or access permissions.")
Expand Down

0 comments on commit 5b00a1b

Please sign in to comment.