[R] R maintains old values

William Dunlap wdun|@p @end|ng |rom t|bco@com
Mon Jul 2 16:32:05 CEST 2018


Do you have a ".RData" file in your home directory or the current working
directory?   If so, R will load it at startup.  It can be made by you
answering 'yes' to the 'Save workspace image?' question when you quit R.

Bill Dunlap
TIBCO Software
wdunlap tibco.com

On Mon, Jul 2, 2018 at 5:02 AM, Morkus via R-help <r-help using r-project.org>
wrote:

> Hello,
>
> I have a strange side-effect from executing R-scripts using R and RServe.
>
> I am executing an R-Script from a Java file using RServe in R. I also have
> RStudio installed, but it's not running at the time. The R-script reads a
> CSV file and does various statistical things. RServe enables me to run each
> line of the R script using "eval()" line by line.
>
> All this works fine for a correctly-formatted CSV file. It's great.
>
> But, if the CSV file isn't correctly formatted, AND the last CSV file did
> correctly get run, then, with the incorrect CSV as input, the output is
> what ran last time. Somehow, the last correct run is persisted and returned
> if there is some problem with the current CSV input.
>
> This data persistence is maintained across reboots.
>
> I'm thus baffled how R is maintaining these old values, but more to the
> point, I need to know how to clear these old values so if the CSV input is
> incorrect, I get nothing back, not the old CSV values from a correctly
> formatted file.
>
> Hope this description is clear.
>
> Thanks in advance to all.
>
> - M
>
> Sent from [ProtonMail](https://protonmail.com), Swiss-based encrypted
> email.
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/
> posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]




More information about the R-help mailing list