rdrop2: Programmatic Interface to the 'Dropbox' API

Dropbox API

> library(rdrop2)

バージョン: 0.7.0


関数名 概略
drop_acc Dropbox account information
drop_auth Authentication for Dropbox
drop_copy Copies a file or folder to a new location.
drop_create Creates a folder on Dropbox
drop_delete Deletes a file or folder.
drop_delta Get a list of Deltas
drop_dir drop_dir
drop_exists Checks to see if a file/folder exists on Dropbox
drop_get Downloads a file from Dropbox
drop_history Obtains metadata for all available revisions of a file, including the current revision.
drop_media Returns a link directly to a file.
drop_move Moves a file or folder to a new location.
drop_read_csv drop_read_csv
drop_search Returns metadata for all files and folders whose filename contains the given search string as a substring.
drop_share Creates and returns a shared link to a file or folder.
drop_upload Uploads a file to Dropbox using PUT semantics.

drop_acc

ユーザー名などのアカウント情報を表示する

> drop_acc()

drop_auth

RからDropboxへアクセスする認証をおこなう

drop_copy

> drop_copy(from_path = NULL, to_path = NULL, root = "auto",
+   verbose = FALSE, dtoken = get_dropbox_token())

drop_get

drop_read_csv

> write.csv(mtcars, file = "mtt.csv")
> drop_upload("mtt.csv")
> drop_read_csv(file = "mtt.csv")

drop_upload

Dropboxへのファイルのアップロード

Arguments

  • file
  • dest
  • overwrite... 上書きを許可するか(TRUE)、否か(FALSE)。初期値はTRUE
  • autorename
  • verbose
  • encode
  • dtoken
> write.csv(mtcars, file = "mtt.csv")
> drop_upload("mtt.csv")