Thanks to visit codestin.com
Credit goes to github.com

Skip to content

create_report() only creates correct folder structure for book if checklist.yml is present? #2

@wlangera

Description

@wlangera

The problem

1. Make an empty R project, e.g. test-flandersqmd.Rproj.

2. Run create_report() in the console:

flandersqmd::create_report(".", "test_report")

3. Follow minimal steps to create the report.

This creates a strange subfolder structure test-flandersqmd/test_report/test_report/test_report.Rproj.
The quarto book documents (including an test_report.Rproj) are placed in the first test_report folder, but it also contains a subfolder test_report which contains only an extra test_report.Rproj.

The solution

Somehow, copying a checklist.yml file into test-flandersqmd folder of the R project works.

1. Create this checklist.yml file into test-flandersqmd folder of the main R project

description: Configuration file for checklist::check_pkg()
package: no
allowed:
  warnings: []
  notes: []
required:
- checklist
- filename conventions
- folder conventions
- lintr
- spelling
spelling:
  default: nl-BE
  ignore:
  - .github
  - LICENSE.md

2. Redo the steps of the problem to create the report

Now, a source folder is create in test-flandersqmd where the report project with correct subfolder structure is created.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions