lbsDeleteDocuments: Delete given documents

Description Usage Arguments Details Value See Also Examples

View source: R/biblio.duplicates.authors.R

Description

Deletes given documents from a Local Bibliometric Storage.

Usage

1
lbsDeleteDocuments(conn, idDocuments)

Arguments

conn

a connection object as produced by lbsConnect.

idDocuments

a list of numeric vectors or a numeric vector; document identifiers (see IdDocument in the table Biblio_Documents) to be deleted.

Details

For safety reasons, an SQL transaction opened at the beginning of the removal process is not committed (closed) automatically. You should do it on your own (or rollback it), see Examples below.

Value

TRUE on success.

See Also

lbsGetInfoDocuments, lbsFindDuplicateTitles

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
conn <- lbsConnect("Bibliometrics.db");
## ...
listdoc <- lbsFindDuplicateTitles(conn,
   ignoreTitles.like=c("In this issue\%", "\%Editorial", "\%Introduction",
   "\%In this issue", "Letter to \%", "\%Preface"),
   aggressiveness=2);
lbsDeleteDocuments(conn, listdoc);
dbCommit(conn);
## ...
## End(Not run)

CITAN documentation built on May 2, 2019, 9:33 a.m.