如何授予 Shiny-App 仅来自一个特定 Dropbox 文件夹的 upload/download 数据的权限?

How to give permission to a Shiny-App to upload/download data from ONLY ONE specific Dropbox folder?

我希望我的闪亮应用程序使用我的 Dropbox 帐户进行远程存储。

我的理解是,为了达到这个目的,使用 "rdrop2" 生成的身份验证文件“.httr-oauth”将我的整个保管箱打开到 shiny-app。但是,我想用一个预先确定的保管箱文件夹来限制此权限。

如果我到现在为止都明白了,我该怎么做?

通过

等条件限制应用内特定保管箱文件夹的访问
if(folder_name == authorised_folder) {let in and process} else {display unauthorised warning message}

或在文件级别

if (file %in% authorised_folder) {let in} else {unauthorised}

或者您可以使用其他东西,例如

assertthat::assert_that(folder %in% authorised folder)