flytable_login | R Documentation |
flytable_login
uses your flytable user name and email to
log into the service.
flytable_set_token
will obtain and store a permanent
seatable user-level API token.
flytable_base
returns a base
object (equivalent to
a mysql database) which allows you to access one or more tables, logging in
to the service if necessary. The returned base object give you full access
to the Python
Base
API allowing a range of row/column manipulations.
flytable_alltables
lists all tables across all flytables
bases.
flytable_columns
returns the name and type of all regular
columns in a base as well as the default R type. Private columns such as
_id
are not included.
flytable_login(
url = "https://flytable.mrc-lmb.cam.ac.uk/",
token = Sys.getenv("FLYTABLE_TOKEN", unset = NA_character_)
)
flytable_set_token(user, pwd, url = "https://flytable.mrc-lmb.cam.ac.uk/")
flytable_base(
table = NULL,
base_name = NULL,
workspace_id = NULL,
url = "https://flytable.mrc-lmb.cam.ac.uk/",
cached = TRUE
)
flytable_alltables(ac = NULL, cached = TRUE)
flytable_columns(table, base = NULL, cached = TRUE)
url |
Optional URL to the server |
token |
normally retrieved from |
user , pwd |
flytable user and password used by |
table |
Character vector specifying a table foe which you want a
|
base_name |
Character vector specifying the |
workspace_id |
A numeric id specifying the workspace. Advanced use only
since we can normally figure this out from |
cached |
Whether to use a cached version of the response if available.
Set to |
ac |
Optional account object returned by flytables_login |
base |
Optional character vector naming a seatable base (recommended) or
a |
Besides initial setup (next paragraph), you should not need to use
these lower level functions directly. Instead we recommend higher level
functions such as flytable_query
.
In order to start using flytable, you must get an API token. There doesn't
seem to be a convenient way to do this from the seatable web interface but
you can get one by calling flytable_set_token
with your flytable
user and password. This should be a once only step. Thereafter you should
have a FLYTABLE_TOKEN
environment variable set in your .Renviron
file.
flytable_base
will use your flytable API token to log into
the service.
For flytable_login
, a Python
Account
object from the seatable api as wrapped by reticulate.
For flytable_base
, a Python
Base
object from the seatable api as wrapped by reticulate.
A data.frame
containing the base_name
,
workspace_id
, table name
and table _id
.
flytable_columns
a data.frame containing columns name
,
type
and rtype
Other flytable:
flytable-queries
,
flytable_list_selected()
,
flytable_update_rows()
## Not run:
flytable_login()
## End(Not run)
## Not run:
flytable_set_token(user='xxx@gmail.com', pwd='yyy')
## End(Not run)
## Not run:
hemilineages=flytable_base(base_name='hemilineages')
# equivalent, but simpler since you only have to remember the table name
hemilineages=flytable_base('fafb_hemilineages_survey')
## End(Not run)
flytable_alltables()
flytable_columns("info")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.