我希望我的闪亮应用程序将我的Dropbox帐户用于远程存储。
我了解的是,通过使用“ rdrop2”生成的身份验证文件“ .httr-oauth”来实现此目的,将我的整个保管箱打开到了闪亮的应用程序。但是,我想使用单个预定的保管箱文件夹来限制此权限。
如果到现在为止,我该怎么做?
通过以下条件限制对应用程序内特定保管箱文件夹的访问:
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)
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句