Skip to content
This repository has been archived by the owner on Aug 12, 2020. It is now read-only.

Commit

Permalink
beauty contest for CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes committed Jul 25, 2017
1 parent 736155f commit 2f55c33
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
2 changes: 1 addition & 1 deletion R/dplyr.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ dplyr_sample_n <- function(x, size, replace = FALSE, weight = NULL) {
stop("Sorry, replace and weight are not supported for MonetDB tables. \
Consider collect()'ing first.")
}
tbl(x$src, dbplyr::sql(dbplyr::build_sql("SELECT * FROM (", dbplyr::sql_render(x, x$src$con), ") AS s SAMPLE ", as.integer(size))))
dplyr::tbl(x$src, dbplyr::sql(dbplyr::build_sql("SELECT * FROM (", dbplyr::sql_render(x, x$src$con), ") AS s SAMPLE ", as.integer(size))))
}

dplyr_sample_frac <- function(tbl, frac=1, replace = FALSE, weight = NULL) {
Expand Down
19 changes: 0 additions & 19 deletions man/src_monetdb.Rd
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
\name{src_monetdb}
\alias{src_monetdb}
\alias{src_monetdblite}
\alias{tbl.src_monetdb}
\alias{src_desc.src_monetdb}
\alias{src_translate_env.src_monetdb}
\alias{sample_frac.tbl_monetdb}
\alias{sample_n.tbl_monetdb}
\alias{db_analyze.MonetDBConnection}
\alias{db_create_index.MonetDBConnection}
\alias{db_insert_into.MonetDBConnection}
\alias{db_query_fields.MonetDBConnection}
\alias{db_query_rows.MonetDBConnection}
\alias{db_query_fields.MonetDBEmbeddedConnection}
\alias{db_query_rows.MonetDBEmbeddedConnection}
\alias{db_save_query.MonetDBConnection}
\alias{sql_subquery.MonetDBConnection}

\title{dplyr integration from MonetDBLite}
\usage{
Expand All @@ -23,7 +9,6 @@ src_monetdb(dbname, host = "localhost", port = 50000L, user = "monetdb",

src_monetdblite(dbdir = tempdir(), ...)

\method{tbl}{src_monetdb}(src, from, ...)
}
\arguments{
\item{dbname}{Database name}
Expand All @@ -37,11 +22,7 @@ src_monetdblite(dbdir = tempdir(), ...)
\item{...}{for the src, other arguments passed on to the underlying
database connector, \code{dbConnect}.}

\item{src}{a MonetDB src created with \code{src_monetdb}.}

\item{dbdir}{a directory to start MonetDBLite in}

\item{from}{Either a string giving the name of table in database, or SQL described a derived table or compound join.}
}
\description{
Use \code{src_monetdb} to connect to an existing MonetDB database,
Expand Down

0 comments on commit 2f55c33

Please sign in to comment.