Comments (5)
Please note that your input bibtex
entry is invalid - for entries of type inproceedings
the field booktitle
is compulsory for the standard bibtex
styles. Also, I am surprised that bibtex
even parsed it, since my slightly older version of package bibtex, v0.4.2.2, gives this:
> bibtex::read.bib("bibtex_issue.bib")
ignoring entry 'joulin2017bag' (line 1) because :
A bibentry of bibtype ‘InProceedings’ has to specify the field: booktitle
Please note that the tone of your posting is insulting, maybe unintentionally. You have given a good description of your problem, perceived or not, for the maintainers (I am not among them) to look at. And that should have been it.
from bibtex.
I don't agree with you that it's insultating - to you, perhaps, but not generally. Of course that's not my intention: I'm stating that this bug seems to be so severe, that it should not be used to write a .bib-file, since this bug will in all likehood scramble the original bib-input. This seems to me to be aa very important point to get through, before anybody wrecks something important.
from bibtex.
The ALL CAPS and double exclamation points in the title... so authoritative and you couldn't even bother to create a reproducible bug report. Your post is 'insultating' to any developer. I conclude your GitHub comments "shouldn't be used" EXCLAMATION MARKS!!!!!!
from bibtex.
This bug nearly ruined an important .bib file i was using, so the all caps and !! was with the intention of making sure nobody else ruined something important they were doing.
I find your suggestion that I "didn't bother including a reprex" to be rude - I spent quite a bit of time figuring out what the error was, so I could post it here.
But of course, if two different people both thinks I wrote the report in a rude manner, I will take that into consideration. There was no bad faith involved, however. The all caps and exclamation mark was probably a bad idea.
from bibtex.
Leaving aside other discussions, I think there is a fair point on here. I would propose to implement a mechanism for creating a backup of the bib file just in case something goes wrong. I already did this on cffr:
https://github.com/ropensci/cffr/blob/855608c8f6d3d7da0180db3e978143a288b6558b/R/write_bib.R#L65:L79
# If exists creates a backup
if (file.exists(file)) {
for (i in seq(1, 100)) {
f <- paste0(file, ".bk", i)
if (!file.exists(f)) break
}
if (verbose) {
message(
"Creating a backup of ",
file, " in ", f
)
}
file.copy(file, f)
}
from bibtex.
Related Issues (20)
- caught segfault read.bib() - macOS 10.14.6 HOT 6
- merge changes from Brian Ripley HOT 1
- ASCII turned into non-ASCII HOT 3
- Orphaned on CRAN HOT 16
- rchk issues HOT 2
- Difficulty loading bibtex in R Studio
- Parse single entry from string HOT 4
- GSOC 2021 R project HOT 2
- write.bib chooses the wrong citation, and doesn't warn that there was an option HOT 3
- Development environment of contributors? HOT 1
- Unable to recover after encountering two consecutive TOKEN_LBRACE "{"
- `write.bib` does not write UTF-8 characters properly HOT 1
- Proposal: Improving the package HOT 6
- oldrel testthat snapshot differences
- Issue with "\\}$" HOT 2
- Commas added to references when using bibtex in rmarkdown HOT 2
- Replace as.personList(authors) with do.call(c, authors)
- Importing bibtex to Zotero classifies citation as "Book" HOT 2
- Direct import into EndNote is not possible HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bibtex.