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

In the book The C Programming Language it says: Many of the functions in
One of the main characteristics of functional programming is the use of side-effectless functions.
I have an idea for a functional programming language design that makes heavy use
I'm currently trying to master Erlang. It's the first functional programming language that I
Can we define functions in structs in C programming language?
I've learned programming from Java, then tried to learn one programming language per year,
As an exercise my team is looking at learning functional programming. One of the
I know one of the goals of pure functional programming is to eliminate mutability,
If I have a programming language with first class functions. What should the semantics
In SML (a functional programming language that I learned before Python), I can do

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.