Tychobra / polished

Authentication and Administration for Shiny apps
https://polished.tech
Other
234 stars 36 forks source link

Can't unset to NULL #167

Closed muschellij2 closed 2 years ago

muschellij2 commented 2 years ago

The reason I had set this to NA in the past is that you can't unset to NULL, it'll give you an error. https://github.com/Tychobra/polished/blob/c070245c6ea52f44e9a87905eabf0fec05efa82f/R/api_00.R#L96

muschellij2 commented 2 years ago
Sys.getenv("anything", unset = NULL)
#> Error in Sys.getenv("anything", unset = NULL): wrong type for argument
merlinoa commented 2 years ago

Yep I just noticed that as well. My bad. Thanks