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

require_bibtex is writing to ~/Downloads/test.txt #1202

zeehio opened this issue Nov 14, 2017 · 2 comments

require_bibtex is writing to ~/Downloads/test.txt #1202

zeehio opened this issue Nov 14, 2017 · 2 comments


Copy link

@zeehio zeehio commented Nov 14, 2017

Looks like some test code was left on R/util.R now both in the CRAN 1.7 version and the development version... Or am I missing something...


Lines 400 to 406 in 33518cc

require_bibtex <- function(aux) {
x <- readLines(aux)
r = length(grep('^\\\\citation\\{', x)) && length(grep('^\\\\bibdata\\{', x)) &&
length(grep('^\\\\bibstyle\\{', x))
if (r) file.copy(aux, '~/Downloads/test.txt')

From this commit:


I don't have a ~/Downloads so it took me a while to realize where the error was coming from 😮 😃

@yihui yihui added this to the v1.8 milestone Nov 14, 2017
@yihui yihui closed this in 2874eda Nov 14, 2017
Copy link

@yihui yihui commented Nov 14, 2017

Ah!! Silly me! Just removed the code for my own debugging purpose.

Many thanks for the report!

Copy link

@github-actions github-actions bot commented Nov 3, 2020

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (, and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants