knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of bottle is to drop email attachment (in gmail) directly into a folder in seafile.
You can install the released version of bottle from CRAN with:
remotes::install_github("VincentGuyader/seafile") remotes::install_github("VincentGuyader/bottle")
library(bottle) library(seafile)
First connect your gmail account
gmailr::gmail_auth()
Then ping your seafile repos
seafile::ping()
Now upload attchment to seafile
get_messages_id() %>% import_files_from_gmail(path = tempdir()) %>% upload_to_seafile(repos_id_destination = get_repo_id(name = "My Library"))
And remove email from inbox and put thme in seafile label
get_messages_id() %>% remove_from_inbox()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.