Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support reading from arbitrary connections. #1

Open
romainfrancois opened this issue Oct 29, 2013 · 0 comments
Open

Support reading from arbitrary connections. #1

romainfrancois opened this issue Oct 29, 2013 · 0 comments

Comments

@romainfrancois
Copy link
Collaborator

From an email exchange with Kurt:

romain writes:

Le 2013-07-29 21:06, Kurt Hornik a écrit :

Romain Francois writes:

Hello,
I've seen that you've released a new version of bibtex. Thanks and
oops
for the missing fclose.

Sure---was reported by someone on Windows who could not file.remove
the
.bib he had just read in ...

There was a tweet from Gavin Simpson:
https://twitter.com/ucfagls/status/360621762578354176

"
Anyone aware of a bibtex parser for #rstats that doesn't need to
read
from files? Looking to parse strings pulled from a web API
"

I guess it would not be too hard to give read.bib the ability to
read
from a character vector rather than from a file. I might have a go
at
this.

Great. Ideally, this would work from arbitrary connections

Best
-k

Maybe I need a fresh look at connections, but last time I tried to use
them in C(++), I could not find an api.

Some is exposed via R_ext/Connections.h (with a note that code should
test for R_CONNECTIONS_VERSION).

(Seems that this is currently not used in any CRAN package ...)

Best
-k

One way is to call back an R function to get some more characters to
feed in to the lexer, but this would not be very efficient.

Romain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant