Comments (1)
Upon further investigation, it seems there are actually 15 columns returned from the drop_history
function when the is_deleted
column is true. The last column, is_deleted
is either missing or true. When missing, the observation only has 14 variables. But when creating the datatable in the last line here:
drop_history <- function(path = NULL, dtoken = get_dropbox_token()) {
rev_url <- "https://api.dropbox.com/1/revisions/auto/"
assert_that(!is.null(path))
rev_url <- paste0(rev_url, strip_slashes(path))
res <- httr::GET(rev_url, , config(token = dtoken))
httr::stop_for_status(res)
results <- httr::content(res)
res_df <- lapply(results, function(x) data.frame(t(unlist(x)), stringsAsFactors = FALSE))
data.table::rbindlist(res_df, fill = TRUE)
}
it results in a dataframe with 15 columns if some of the observations have is_deleted
as TRUE.
Is the expect_equal(ncol(x), 14)
just checking to make sure that no files have been deleted?
Note: is_deleted
is metadata that will be changing in v2:
https://www.dropbox.com/developers/reference/migration-guide#metadata-mapping
from rdrop2.
Related Issues (20)
- drop_list_shared_links() doesn't accept cursor or path arguments HOT 3
- Issues with Connecting to RStudio Cloud
- Authentication on virtual machine HOT 5
- BUG: drop_upload() does not return 'response'
- WISH: Completely silent calls
- Specify paths with shared_folder_id HOT 1
- dropbox_save with rdrop2? HOT 2
- Is there any way to use shinyWidgets/shinyhttr along with drop_download() to reflect the progress for downloads? HOT 1
- Documentation for drop_download shows deprecated function in examples
- Auth without a .rds file : is it possible? HOT 1
- Dropbox API Version 2 Updates HOT 2
- drop_delete with dtoken
- drop_share returning "Conflict (HTTP 409)" for some files not yet shared
- drop_upload() not works with ".wav" file
- drop_read : wrapper function for readxl, readRDS, load and readcsv
- drop_auth() generating short lived tokens HOT 13
- Request for autoretry (errors with http 429)
- Token auto-refresh hangs on windows machine HOT 2
- drop_copy / drop_move moving entire file path, not just the selected file
- expired_access_token HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rdrop2.