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

Closed
zeehio opened this Issue Nov 14, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@zeehio
Copy link
Contributor

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...

rmarkdown/R/util.R

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')
r
}

From this commit:

93b3eff#diff-f47fc41e7988539165edd36a2fc8fd66R402

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

@yihui

This comment has been minimized.

Copy link
Member

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