Skip to content

Commit 6d01968

Browse files
committed
fixed #116
1 parent 7abe742 commit 6d01968

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

NEWS.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# rjtools 1.0.18
22

3-
Fix issues #129, 132, 133, 134. Warnings instead of errors reported when potential problems with section headings and title given.
3+
Fix issues #116, 129, 132, 133, 134. Warnings instead of errors reported when potential problems with section headings and title given.
44

55
# rjtools 1.0.17
66

R/rjournal_article.R

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ create_article <- function(name="test", file = xfun::with_ext(name, "Rmd"), crea
2222
)
2323

2424
if(edit) {
25-
path <- if(create_dir) {
25+
path <- if (create_dir) {
2626
file.path(xfun::sans_ext(file), file)
2727
} else {
2828
file
@@ -40,6 +40,8 @@ create_article <- function(name="test", file = xfun::with_ext(name, "Rmd"), crea
4040
}
4141
}
4242

43+
if (create_dir)
44+
setwd(name)
4345
fs::dir_create("data")
4446
fs::dir_create("figures")
4547
fs::file_move("penguins.png", "figures/penguins.png")

0 commit comments

Comments
 (0)