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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:23:00+00:00 2026-06-13T14:23:00+00:00

Instead of doing a <- loadBigObject(a) b <- loadBigObject(b) I’d like to call a

  • 0

Instead of doing

a <- loadBigObject("a")
b <- loadBigObject("b")

I’d like to call a function like

loadBigObjects(list("a","b"))

And be able to access the a and b objects.

  • 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-13T14:23:02+00:00Added an answer on June 13, 2026 at 2:23 pm

    It is not clear what loadBigObjects() does or where it will look for a and b. How does it load the objects from file or sourcing code?

    There are lots of options in general:

    • sys.source() allows an R file to be sourced to a given environment
    • load() which will load an .Rdata file to a given environment
    • assign() in combination with any object created by loadBigObjects() or a call to readRDS() can also load an object to a given environment.

    From within your function, you’ll want to specify the environment in which to load objects as the Global Environment by using globalenv(). If you don’t do that then the object will only exist in the evaluation frame of the running loadBigObjects(). E.g.

    loadBigObjects <- function(list) {
        lapply(list, function(x) assign(x, readRDS(x), envir = globalenv()))
    }
    

    (as per your comment to @GSee’s Answer, and assuming the list("a","b") is sufficient information for readRDS() to locate and open the object.

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

Sidebar

Related Questions

Possible Duplicate: Access array element from function call in php instead of doing this:
Is there a way instead of doing something like this: for (item in list){
Instead of doing an each loop on a JSON file containing a list of
Instead of doing: using(MyDataContext db = new MyDataContext()) { //do something } I'd like
Very basic and maybe I missed it, but instead of doing something like sign_up
Instead of doing #include MyClass.cpp I would like to do #include MyClass.h I've read
Like the title says I want to use a color code instead of doing
Is it possible to instead of doing this: person.Walking -= person_Walking1; person.Walking -= person_Walking2;
can cookies be blocked using a page directive instead of doing it programmatic?
Suppose I have a script: my_script.sh Instead of doing ./my_script.sh I want to 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.