Code Monkey home page Code Monkey logo

Comments (3)

yihui avatar yihui commented on June 10, 2024 1

@CerebralMastication Should be fixed now. Thanks for the report! You can install the development version via

remotes::install_github('rstudio/blogdown')

@cderv Yes, in theory, switch() here should fall back to an (informative) error, but this case should never happen. It happened because of a regex problem in module_paths(), which I just fixed.

from blogdown.

cderv avatar cderv commented on June 10, 2024

It seems indeed that

Error in parser(f) : could not find function "parser"

comes from

blogdown/R/utils.R

Lines 219 to 224 in 3c5f7d8

read_config = function(f) {
parser = switch(
basename(f), 'config.toml' = read_toml, 'config.yaml' = yaml_load_file
)
parser(f)
}

And we could fail more gracefully in the (unexpected) case where parser() is not a function.

Regarding why you have this error, I'll look closer.

from blogdown.

cderv avatar cderv commented on June 10, 2024

Thanks for looking into this !

Yes, in theory, switch() here should fall back to an (informative) error, but this case should never happen. It happened because of a regex problem in module_paths(), which I just fixed.

Yeah I know, it should never happen, but when it happens like here, having a useful error or debug log would have made finding the issue straighforward. I agree though that this is internal and not user facing and should not happen !

Thank you !

from blogdown.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.