Displaying 6 results from an estimated 6 matches for "kendon".
Did you mean:
mendon
2016 Jul 27
3
Model object, when generated in a function, saves entire environment when saved
...ere the model exists in .GlobalEnv, everything is
peachy. So replicating whatever happens when saving the model that was
generated in .GlobalEnv at the return() stage of the function call
would fix this problem.
I was referred to this list from r-bugs. First time r-devel poster.
Hope this helps,
Kendon
```
tmp_fun <- function(x){
iris_big <- lapply(1:10000, function(x) iris)
lm(Sepal.Length ~ Sepal.Width, data = iris)
}
out <- tmp_fun(1)
object.size(out)
# 48008
save(out, file = "tmp.RData", compress = FALSE)
file.size("tmp.RData")
# 57196752 - way too big
# Wo...
2016 Dec 15
1
Parallel compression support for saving to rds/rdata files?
...ing from connection
First question: Should the above work?
Second question: Is it possible to make this dummy friendly by allowing
"pigz" as an option for ``compress`` in saveRDS and save? And in such a way
that the decompressing is hidden from the user like normal?
Thanks!
Kenny
--
Kendon Bell
Email: kmb56 at berkeley.edu
Phone: (510) 612-3375
Ph.D. Candidate
Department of Agricultural & Resource Economics
University of California, Berkeley
[[alternative HTML version deleted]]
2016 Jul 27
2
Model object, when generated in a function, saves entire environment when saved
...ing whatever happens when saving the model that was
>> generated in .GlobalEnv at the return() stage of the function call
>> would fix this problem.
>>
>> I was referred to this list from r-bugs. First time r-devel poster.
>>
>> Hope this helps,
>>
>> Kendon
>>
>> ```
>> tmp_fun <- function(x){
>> iris_big <- lapply(1:10000, function(x) iris)
>> lm(Sepal.Length ~ Sepal.Width, data = iris)
>> }
>>
>> out <- tmp_fun(1)
>> object.size(out)
>> # 48008
>> save(out, file = "t...
2016 Jul 27
0
Model object, when generated in a function, saves entire environment when saved
...hing is
> peachy. So replicating whatever happens when saving the model that was
> generated in .GlobalEnv at the return() stage of the function call
> would fix this problem.
>
> I was referred to this list from r-bugs. First time r-devel poster.
>
> Hope this helps,
>
> Kendon
>
> ```
> tmp_fun <- function(x){
> iris_big <- lapply(1:10000, function(x) iris)
> lm(Sepal.Length ~ Sepal.Width, data = iris)
> }
>
> out <- tmp_fun(1)
> object.size(out)
> # 48008
> save(out, file = "tmp.RData", compress = FALSE)
> file....
2016 Jul 27
0
Model object, when generated in a function, saves entire environment when saved
...el that was
> >> generated in .GlobalEnv at the return() stage of the function call
> >> would fix this problem.
> >>
> >> I was referred to this list from r-bugs. First time r-devel poster.
> >>
> >> Hope this helps,
> >>
> >> Kendon
> >>
> >> ```
> >> tmp_fun <- function(x){
> >> iris_big <- lapply(1:10000, function(x) iris)
> >> lm(Sepal.Length ~ Sepal.Width, data = iris)
> >> }
> >>
> >> out <- tmp_fun(1)
> >> object.size(out)
>...
2020 Jan 29
2
Model object, when generated in a function, saves entire environment when saved
...nerated in .GlobalEnv at the return() stage of the function call
>> >> would fix this problem.
>> >>
>> >> I was referred to this list from r-bugs. First time r-devel poster.
>> >>
>> >> Hope this helps,
>> >>
>> >> Kendon
>> >>
>> >> ```
>> >> tmp_fun <- function(x){
>> >> iris_big <- lapply(1:10000, function(x) iris)
>> >> lm(Sepal.Length ~ Sepal.Width, data = iris)
>> >> }
>> >>
>> >> out <- tmp_fun(1)
>...