Learn R Programming

CITAN (version 2015.12-2)

lbsDeleteDocuments: Delete given documents

Description

Deletes given documents from a Local Bibliometric Storage.

Usage

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.

Value

TRUE on success.

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.

See Also

lbsGetInfoDocuments, lbsFindDuplicateTitles

Examples

Run this code
# 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);
## ...
# }

Run the code above in your browser using DataLab