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 · 1 comment


None yet
2 participants
Copy link

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


This comment has been minimized.

Copy link

yihui commented Nov 14, 2017

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

Many thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment