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

Make intermediates_dir explicit earlier to fix 1980 #1982

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

atusy
Copy link
Collaborator

@atusy atusy commented Dec 15, 2020

See #1980 (comment) for why I suggest the change.

Copy link
Member

@yihui yihui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thank you!

@atusy
Copy link
Collaborator Author

atusy commented Dec 15, 2020

Oops the test is failing. I'll inspect tomorrow.

Copy link
Member

@yihui yihui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, actually this seems to break some tests in the package (as shown in Github actions), so needs further investigation.

@atusy atusy requested a review from yihui December 16, 2020 12:26
@atusy
Copy link
Collaborator Author

atusy commented Dec 16, 2020

OK, finally I passed the tests.

@cderv
Copy link
Collaborator

cderv commented Dec 16, 2020

Thanks @atusy !

Just sharing my thoughts here - not a review.

I did not have look closely yet to the initial issue and your fix but from what I can see these changes are targeting important part of the render() code. Paths management are always tricky in rmarkdown.

I've seen in the past that side effects can happen. We should really make sure we cover how it is expected to work before the change to check it still work the same after. I know I added some tests already and I think we should add more to be sure. But there is a lot of edge cases (as the one in the issue - Github document in subdir with space in names).

Maybe I am a bit too cautious but I find this part of the code very tricky and trying to fix a specific bug by a more generic solution could lead to unexpected behavior. And I got bitten by that already in the past.

I'll find time to look closer.

@atusy
Copy link
Collaborator Author

atusy commented Dec 16, 2020

@cderv Thanks. I agree with you. We have to be cautious.

As the issue can be avoided by explicit intermediates_dir, we do not have to be hurry to merge this. Let's take a time.

@cderv
Copy link
Collaborator

cderv commented Dec 22, 2020

I commented in #1980 where I tried to better understand the underlying issue. I need to see clearer what happens, and what should happens. In the meantime, if you are ok I would like to hold this PR. thank you.

@cderv cderv added the theme: paths path related improvment / issue label Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: paths path related improvment / issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rmarkdown uses incorrect working directory if filename has spaces and output format is "github_document"
3 participants