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

create_article(create_dir=TRUE) fails to create directory tree #116

Open
bastistician opened this issue Jan 22, 2024 · 1 comment
Open

Comments

@bastistician
Copy link

rjtools::create_article("test", create_dir = TRUE)

should create a directory "test" with the article template, but instead gives

Error: [ENOENT] Failed to move 'penguins.png' to 'figures/penguins.png': no such file or directory

with the following tree:

.
├── data
├── figures
└── test
    ├── motivation-letter.md
    ├── penguins.png
    ├── RJournal.sty
    ├── RJreferences.bib
    └── test.Rmd

I have used the current development version of rjtools (as at Commit 7817168) in current R 4.3.2.

@dicook
Copy link
Collaborator

dicook commented Jan 22, 2024

Hi @bastistician Thanks for the report. The "test" directory is complete, though, so as long as you then use that as your paper working directory, test.proj, then all is good.

The error is due to not setting up correctly when a folder is specified. We made the default rjtools::create_article() set up the nice folder structure, in the current directory, to help new authors get their work organised. It was not finished properly, to work correctly when a folder is specified. We'll fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants