Giter VIP home page Giter VIP logo

Comments (6)

XiangyunHuang avatar XiangyunHuang commented on July 26, 2024

@pzhaonet 我这里都可以运行的

> library(formatR)
> usage(boxplot,'default')
boxplot(x, ...)
> usage(boxplot.default)
## Default S3 method:
boxplot(x, ..., range = 1.5, width = NULL, varwidth = FALSE, notch = FALSE,
    outline = TRUE, names, plot = TRUE, border = par("fg"), col = NULL, log = "",
    pars = list(boxwex = 0.8, staplewex = 0.5, outwex = 0.5), ann = !add,
    horizontal = FALSE, add = FALSE, at = NULL)

from msg.

pzhaonet avatar pzhaonet commented on July 26, 2024

我不是说它不可以运行,而是说运行的结果跟预期不一致。

例如原稿里usage(boxplot,'default'),返回的预期结果不是 boxplot(x, ...),而是 Default S3 method 下面的文本。你瞧瞧原稿的 pdf 就知道我的意思了。我看到第三章也有这个问题。

from msg.

XiangyunHuang avatar XiangyunHuang commented on July 26, 2024

这应该属于函数功能发生变动,看 @yihui 怎么处理吧

from msg.

pzhaonet avatar pzhaonet commented on July 26, 2024

是的。不过,原稿这部分并不是想介绍 usage 函数的用法,而是为了列出其返回结果,以便后续段落介绍各个参数。如果 usage 函数功能变了,那么手动从帮助文档里拷贝 usage 字段就行了。

from msg.

yihui avatar yihui commented on July 26, 2024

boxplotformula 方法没有导出,所以要用三冒号:

formatR::usage(graphics:::boxplot.formula)

from msg.

pzhaonet avatar pzhaonet commented on July 26, 2024

原来如此。谢谢!

from msg.

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.