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

Closed
zeehio opened this issue Nov 14, 2017 · 2 comments
Closed

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

zeehio opened this issue Nov 14, 2017 · 2 comments
Milestone

Comments

@zeehio
Copy link
Contributor

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

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
Copy link
Member

@yihui yihui commented Nov 14, 2017

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

Many thanks for the report!

@github-actions
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 (https://yihui.org/issue/), 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.
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants