GitHub PullRequestReviewCommentEvent at 2014-03-18 20:56:54
Repository: dplyr
Actor: hadley
Payload: {"comment":{"url":"https://api.github.com/repos/hadley/dplyr/pulls/comments/10725263","id":10725263,"diff_hunk":"@@ -0,0 +1,178 @@\n+#' Connect to greenplum.\n+#'\n+#' Use \\code{src_greenplum} to connect to an existing greenplum database,\n+#' and \\code{tbl} to connect to tables within that database.\n+#' If you are running a local greenplum database, leave all parameters set as\n+#' their defaults to connect. If you're connecting to a remote database,\n+#' ask your database administrator for the values of these variables.\n+#'\n+#' @template db-info\n+#' @param dbname Database name\n+#' @param host,port Host name and port number of database\n+#' @param user,password User name and password (if needed)\n+#' @param ... for the src, other arguments passed on to the underlying\n+#'   database connector, \\code{dbConnect}. For the tbl, included for\n+#'   compatibility with the generic, but otherwise ignored.\n+#' @param src a greenplum src created with \\code{src_greenplum}.\n+#' @param from Either a string giving the name of table in database, or\n+#'   \\code{\\link{sql}} described a derived table or compound join.\n+#' @export\n+#' @examples\n+#' \\dontrun{\n+#' # Connection basics ---------------------------------------------------------\n+#' # To connect to a database first create a src:\n+#' my_db <- src_greenplum(host = \"blah.com\", user = \"hadley\",\n+#'   password = \"pass\")\n+#' # Then reference a tbl within that src\n+#' my_tbl <- tbl(my_db, \"my_table\")\n+#' }\n+#'\n+#' # Here we'll use the Lahman database: to create your own local copy,\n+#' # create a local database called \"lahman\", or tell lahman_greenplum() how to\n+#' # a database that you can write to\n+#'\n+#' if (has_lahman(\"greenplum\")) {","path":"R/src-greenplum.r","position":34,"original_position":34,"commit_id":"a729e21043087d32ea72c58bfe147e7938d6b14a","original_commit_id":"a729e21043087d32ea72c58bfe147e7938d6b14a","user":{"login":"hadley","id":4196,"avatar_url":"https://avatars.githubusercontent.com/u/4196?","gravatar_id":"7ba164f40a50bc23dbb2aa825fb7bc16","url":"https://api.github.com/users/hadley","html_url":"https://github.com/hadley","followers_url":"https://api.github.com/users/hadley/followers","following_url":"https://api.github.com/users/hadley/following{/other_user}","gists_url":"https://api.github.com/users/hadley/gists{/gist_id}","starred_url":"https://api.github.com/users/hadley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadley/subscriptions","organizations_url":"https://api.github.com/users/hadley/orgs","repos_url":"https://api.github.com/users/hadley/repos","events_url":"https://api.github.com/users/hadley/events{/privacy}","received_events_url":"https://api.github.com/users/hadley/received_events","type":"User","site_admin":false},"body":"I think you'll also need to add a bit of infrastructure to `has_lahman()`","created_at":"2014-03-18T20:56:54Z","updated_at":"2014-03-18T20:56:54Z","html_url":"https://github.com/hadley/dplyr/pull/335#discussion_r10725263","pull_request_url":"https://api.github.com/repos/hadley/dplyr/pulls/335","_links":{"self":{"href":"https://api.github.com/repos/hadley/dplyr/pulls/comments/10725263"},"html":{"href":"https://github.com/hadley/dplyr/pull/335#discussion_r10725263"},"pull_request":{"href":"https://api.github.com/repos/hadley/dplyr/pulls/335"}}}}