Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 404643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:19:37+00:00 2026-05-12T17:19:37+00:00

R is a functional programming language , and one of it’s primary benefits is

  • 0

R is a functional programming language, and one of it’s primary benefits is it’s ability to create open and transparent functions.

As John Chambers says in his excellent book “Software for Data Analysis: Programming with R”:

Computations are organized around functions, which can encapsulate specific, meaningful computational results, with implementations that can be examined for correctness.

Notions such as “reproducible research” and “trustworthy software” are at the heart of R development. In general, it is easy to examine a function just by typing its name without parenthesis. For instance:

> which
function (x, arr.ind = FALSE) 
{
    if (!is.logical(x)) 
        stop("argument to 'which' is not logical")
    wh <- seq_along(x)[x & !is.na(x)]
    dl <- dim(x)
...

My question is: how do you example the contents of functions such as for() or if() without downloading the R source code?

Edit: Incidentally, I understand that this won’t help viewing compiled code (such as C, C++, or Java) that may be called from R. I’m really wondering if there is an R function which output’s R functions.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T17:19:37+00:00Added an answer on May 12, 2026 at 5:19 pm

    As the saying goes: Use the source, Luke!

    R functions may be visible at the prompt, but are still parsed meaning that comments are stripped, code indentation is changed etc. So I would always go to the source.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

One of the main characteristics of functional programming is the use of side-effectless functions.
How does TDD compare with Functional Programming Languages like F# and Erlang? I haven't
Why is Java the most used programming language ? Why are the most programmers
I'm implementing a simple lazy functional language with LLVM as its backend in Haskell.
I like F# ; I really, really do. Having been bitten by the functional
Take a look at this programming challenge. https://gist.github.com/1083219 We’ve built a new communication protocol
I remember reading an article saying something like The number of bugs introduced doesn't
Since I started learning F# and OCaml last year, I've read a huge number
I wanna implement a javascript like method in java , is this possible ?
This is my very first question so I am a bit nervous about it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.