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 8890651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:33:03+00:00 2026-06-14T22:33:03+00:00

I want to know how to call a method of a R5 Class object

  • 0

I want to know how to call a method of a R5 Class object by using a character variable of the name of the method.
Say I have a R5 class object Object.R5 and it has a method called myMethod. The usual way we call the method is just typing:

Object.R5$myMethod()

However if I set a variable

method.name <- ‘myMethod’

I’m wondering how can I call the method by using method.name? I tried:

do.call(paste(“Object.R5$”, method.name, “()”, sep=””))

But this prompt an error message saying ‘what’ must be a character string or a function. I know the answer must be trivial but I’m new to R5 class so… anyone knows the answer please help.

  • 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-06-14T22:33:04+00:00Added an answer on June 14, 2026 at 10:33 pm
    get(method_name, envir=Object.R5)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to call a method on a returned object using the pipeline
I have some code where I really want to call a virtual method from
I want to make a class that will have a single get template method
I want to know how to call Ajax function Recursively. My ajax code is
i just want to know how the call hierarchy is implemented in eclipse IDE
Hi. I am new to jQuery.. I want to know how to call custom
I want to know if it is possible to call an activity through background
I want to know how objective C runtime handle arguments when I call a
I want to know what is the different of them. when I can call
I have an android app it displays web view.I want know the app idle

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.