Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A version of eval for R that returns more information about what happened

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
NotificationsYou must be signed in to change notification settings

r-lib/evaluate

R-CMD-checkCRAN statusDownloads from the RStudio CRAN mirrorCodecov test coverage

evaluate provides tools that allow you to recreate the parsing, evaluation anddisplay of R code, with enough information that you can accurately recreate whathappens at the command line. Evaluate + replay works very similarly tosource(), but is written in such a way to make it easy to adapt for otheroutput formats, such as html or latex.

library(evaluate)

There are three components to theevaluate package:

  • parse_all(), a version of parse that keeps expressions with their originalsource code, maintaining formatting and comments.
  • evaluate(), which evaluates each expression produced byparse_all(),tracking all output, messages, warnings, and errors as their occur, andinterleaving them in the correct order with the original source and valueof the expression.
  • replay(), which outputs these pieces in a way that makes it look like you'veentered the code at the command line. This function also serves as atemplate for other output formats.

About

A version of eval for R that returns more information about what happened

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Code of conduct

Contributing

Stars

Watchers

Forks

Contributors20

Languages


[8]ページ先頭

©2009-2025 Movatter.jp