35

I created a database "mydb" that when run with lazyLoad("mydb") import in the workspace the (big) data.frames X and Y. I created "mydb" putting X and Y in an environment e and using the command tools:::makeLazyLoadDB(e,"mydb")

Now I created a third data.frame Z (quite big as well).

How can I add it to "mydb" without having to recreate the lazy objects for X and Y as well?

1

1 Answer 1

4

You need to save your workspace and try adding Dataframe Z into environment and again run tools:::makeLazyLoadDB(e,"mydb") , please find example below

e=new.env(parent=emptyenv());
e$x=10;
e$y=20;
tools:::makeLazyLoadDB(e,"mydb");
save.image();
lazyLoad("mydb");
e$z=40;
tools:::makeLazyLoadDB(e,"mydb");
save.image();
lazyLoad("mydb");

You can see your three Data frames x,y,z.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks Prateek, I actually had found your solution and forgot to add the answer!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.