importData | R Documentation |
This function imports all views in the ANALYSIS schema of the NETN_Forest backend. Each view is added to a VIEWS_NETN environment in your workspace, or to your global environment based on whether new_env = TRUE or FALSE. You must have the latest ODBC SQL driver installed for this function to work. It can be downloaded from: https://go.microsoft.com/fwlink/?linkid=2168524
importData(
instance = c("local", "server"),
server = NA,
name = "NETN_Forest",
new_env = TRUE
)
instance |
Specify whether you are connecting to the local instance or server.
|
server |
Quoted name of the server to connect to, if instance = "server". Valid input is the server address to connect to the main database. If connecting to the local instance, leave blank. |
name |
Character. Specifies the name of the database. Default is "NETN_Forest" |
new_env |
Logical. Specifies which environment to store views in. If |
NETN database views in specified environment
## Not run:
# Import using default settings of local instance, server = 'localhost' and add VIEWS_NETN environment
importData()
# Import using computer name (# should be real numbers)
importData(server = "INPNETN-######", new_env = TRUE)
# Import from main database on server
importData(server = "INP###########\\########", instance = "server", new_env = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.