Re: [R] cannot base64decode string which is base64encode in R

2013-08-06 Thread Qiang Wang
. On Tue, Aug 6, 2013 at 1:43 AM, Enrico Schumann e...@enricoschumann.netwrote: On Mon, 05 Aug 2013, Qiang Wang uns...@gmail.com writes: On Sat, Aug 3, 2013 at 3:49 PM, Enrico Schumann e...@enricoschumann.net wrote: On Fri, 02 Aug 2013, Qiang Wang uns...@gmail.com writes: Hi, I'm

Re: [R] cannot base64decode string which is base64encode in R

2013-08-04 Thread Qiang Wang
' Most part of the result is correct except several characters near the end. I don't know where the problem is. On Sat, Aug 3, 2013 at 3:49 PM, Enrico Schumann e...@enricoschumann.netwrote: On Fri, 02 Aug 2013, Qiang Wang uns...@gmail.com writes: Hi, I'm struggling with encode/decode

[R] cannot base64decode string which is base64encode in R

2013-08-02 Thread Qiang Wang
Hi, I'm struggling with encode/decode strings in R. Don't know why the second example below would fail. Thanks in advance for your help. succeed: s - saf x - base64encode(s) y - base64decode(x, character) fail: s - safs x - base64encode(s) y - base64decode(x, character) [[alternative

[R] About the scope of a variable and the save() method

2012-09-29 Thread Qiang Wang
In the following test, the variable x is supposed to be modified within the function test.save.x. It works as expected util using the save command. # initialize x.file x - 1 save(x, file=x.file) rm(x) # Remove x from R_GlobalEnv exists(x) # FALSE # define test test.save.x - function(){ save.x -