Skip to content

"Error in path_to_connection()" if one of the files to be compiled has the same name as the final file although in a subfolder #1464

Open
@piiskop

Description

@piiskop

The content of my _bookdown.yml:

book_filename: "mehaanika"
new_session: false
delete_merged_file: true
rmd_files: [
  "index.Rmd",
  # "UntitledRMD.Rmd",
  "rmd/hindamine.Rmd",
  "rmd/soovitusi-õppimiseks.Rmd",
  "rmd/baasreeglistik/baasreeglistik.Rmd",
  "rmd/mehaanika.Rmd",
  "rmd/mõõtmiseksperiment.Rmd",
  "references.Rmd"
]
language:
  label:
    exr: 'Ülesanne '
    fig: 'Joonis '

The error message:

Error in path_to_connection():
! mehaanika.html does not exist in current working
directory (/home/kalmer/rstudio-projects/mehaanika).

If I exclude the file mehaanika.Rmd from the list of the files to be compiled then compiling finishes without an error. Even if I rename the file to something else and change the name in the list as well the same old error message reappears.

Only also renaming the first-level caption inside the file allows compiling without an error.

xfun::session_info('bookdown')

R version 4.3.3 (2024-02-29)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04.4 LTS, RStudio 2023.3.3.539

Locale:
LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C
LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

Package version:
base64enc_0.1.3 bookdown_0.37 bslib_0.6.1 cachem_1.0.8 cli_3.6.2 digest_0.6.34 ellipsis_0.3.2 evaluate_0.23
fastmap_1.1.1 fontawesome_0.5.2 fs_1.6.3 glue_1.7.0 graphics_4.3.3 grDevices_4.3.3 highr_0.10 htmltools_0.5.7
jquerylib_0.1.4 jsonlite_1.8.8 knitr_1.45 lifecycle_1.0.4 magrittr_2.0.3 memoise_2.0.1 methods_4.3.3 mime_0.12
R6_2.5.1 rappdirs_0.3.3 rlang_1.1.3 rmarkdown_2.25 sass_0.4.8 stats_4.3.3 stringi_1.8.3 stringr_1.5.1
tinytex_0.49 tools_4.3.3 utils_4.3.3 vctrs_0.6.5 xfun_0.41 yaml_2.3.8

Metadata

Metadata

Assignees

Labels

bugan unexpected problem or unintended behavior

Type

No type

Projects

Status

Todo In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions