Re: [R] run r script in r-fiddle

2017-11-01 Thread Martin Maechler
> Suzen, Mehmet 
> on Tue, 31 Oct 2017 19:27:30 +0100 writes:

> Dear List, According to datacamp support team,
> r-fiddle.org is not supported. We asked them to put it
> down as Professor Maechler suggested it is a waste of time
> for the R-help to respond to questions on something not
> maintained and severely outdated. If you would like to use
> R from your browser, you can embed the following into a
> web page:

>  src="https://cdn.datacamp.com/datacamp-light-latest.min.js";>
> 

> Currently, it supports R 3.4.0. See the code base, which
> is open source, here
> https://github.com/datacamp/datacamp-light

> Hope it helps.
> Best, Mehmet

Yes, it does!
Thank you very much, Mehmet, for reaching out to get these
clarifications and reporting back here.

I'm glad to be notified that datacamp seems to adhere to an open source
philosophy also in the tools they write: For datacamp-light they
_do_ adhere (*) to the much more strict 
GNU Public Licence (GPL) Free Software standard which emphasizes not
only the free availability of source code, but also other
freedoms, e.g., to *modify* and re-distribute under the GPL, see
https://en.wikipedia.org/wiki/GPL for much more.

An open Github repos alone is _no_ guarantee for that, and
unfortunately I think there's much software there where authors
don't care (or don't want) to use a "truly" free software
licence such as
(*) https://github.com/datacamp/datacamp-light/blob/master/LICENSE.md

Best,
Martin Maechler


> On 31 October 2017 at 15:09, Suzen, Mehmet
>  wrote:
>> On 31 October 2017 at 12:42, Martin Maechler
>>  wrote:
>>> Notably as I think it's been provided by a company that
>>> no longer exists under that name, and even if that'd be
>>> wrong, R-Fiddle does not seem free software (apart from
>>> the R parts, I hope !).
>> 
>> For the record, r-fiddle is maintained by datacamp:
>> 
https://www.datacamp.com/community/blog/r-fiddle-an-online-playground-for-r-code-2

__
R-help@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.


Re: [R] run r script in r-fiddle

2017-10-31 Thread Suzen, Mehmet
Dear List,

According to datacamp support team, r-fiddle.org is not supported. We
asked them to put it down as Professor Maechler suggested it is
a waste of time for the R-help to respond to questions on something
not maintained and severely outdated. If you would like to use
R from your browser, you can embed the following into a web page:

https://cdn.datacamp.com/datacamp-light-latest.min.js";>


Currently, it supports R 3.4.0. See the code base, which is open
source, here https://github.com/datacamp/datacamp-light

Hope it helps.

Best,
Mehmet



On 31 October 2017 at 15:09, Suzen, Mehmet  wrote:
> On 31 October 2017 at 12:42, Martin Maechler  
> wrote:
>> Notably as I think it's been provided by a company that no
>> longer exists under that name, and even if that'd be wrong,  R-Fiddle
>> does not seem free software (apart from the R parts, I hope !).
>
> For the record, r-fiddle is maintained by datacamp:
> https://www.datacamp.com/community/blog/r-fiddle-an-online-playground-for-r-code-2

__
R-help@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.


Re: [R] run r script in r-fiddle

2017-10-31 Thread Gabor Grothendieck
Try that source statement here -- it is running R 3.4.1:

https://www.tutorialspoint.com/execute_r_online.php

On Mon, Oct 30, 2017 at 11:14 AM, Suzen, Mehmet  wrote:
>  Note that, looks like r-fiddle runs R 3.1.2.
>
> __
> R-help@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.



-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com

__
R-help@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.


Re: [R] run r script in r-fiddle

2017-10-31 Thread Suzen, Mehmet
On 31 October 2017 at 12:42, Martin Maechler  wrote:
> Notably as I think it's been provided by a company that no
> longer exists under that name, and even if that'd be wrong,  R-Fiddle
> does not seem free software (apart from the R parts, I hope !).

For the record, r-fiddle is maintained by datacamp:
https://www.datacamp.com/community/blog/r-fiddle-an-online-playground-for-r-code-2

__
R-help@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.


Re: [R] run r script in r-fiddle

2017-10-31 Thread Martin Maechler
> Suzen, Mehmet 
> on Mon, 30 Oct 2017 16:05:18 +0100 writes:

> We were talking about r-fiddle. It gives error there [*],

> that's why I suggested using RCurl.

>> 
source("https://raw.githubusercontent.com/msuzen/isingLenzMC/master/R/isingUtils.R";)
> ...  unsupported URL scheme Error : cannot open the
> connection
>> 

and later you note that it seems to run R-3.1.2 --- which is
ridiculously outdated.

I think R-help should not be (mis)used at all to talk about
R-Fiddle, then.
Notably as I think it's been provided by a company that no
longer exists under that name, and even if that'd be wrong,  R-Fiddle
does not seem free software (apart from the R parts, I hope !).

If another asked about his/her problems using R 3.1.2, I think
we would all tell him to go away and install a current version
of R, and not waste any more bandwidth and R-help readers' time,
wouldn't we ?


> On 30 October 2017 at 15:51, Martin Maechler
>  wrote:
>>> Suzen, Mehmet  on Mon, 30 Oct 2017
>>> 11:16:30 +0100 writes:
>> 
>> > Hi Frank, You could upload your R source file to a
>> public > URL, for example to github and read via RCurl,
>> as source > do not support https as far as I know.
>> 
>> well... but your knowledge is severely (:-) outdated.
>> Why did you not try first?
>> 
>> 
source("https://raw.githubusercontent.com/msuzen/isingLenzMC/master/R/isingUtils.R";)
>> 
>> works for me even in R 3.3.0 which is really outdated
>> itself!

__
R-help@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.


Re: [R] run r script in r-fiddle

2017-10-30 Thread Suzen, Mehmet
 Note that, looks like r-fiddle runs R 3.1.2.

__
R-help@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.


Re: [R] run r script in r-fiddle

2017-10-30 Thread Suzen, Mehmet
We were talking about r-fiddle. It gives error there [*], that's why I
suggested using RCurl.

> source("https://raw.githubusercontent.com/msuzen/isingLenzMC/master/R/isingUtils.R";)
...
unsupported URL scheme
Error : cannot open the connection
>

On 30 October 2017 at 15:51, Martin Maechler  wrote:
>> Suzen, Mehmet 
>> on Mon, 30 Oct 2017 11:16:30 +0100 writes:
>
> > Hi Frank, You could upload your R source file to a public
> > URL, for example to github and read via RCurl, as source
> > do not support https as far as I know.
>
> well... but your knowledge is severely (:-) outdated.
> Why did you not try first?
>
> source("https://raw.githubusercontent.com/msuzen/isingLenzMC/master/R/isingUtils.R";)
>
> works for me even in R 3.3.0 which is really outdated itself!
>

__
R-help@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.


Re: [R] run r script in r-fiddle

2017-10-30 Thread Martin Maechler
> Suzen, Mehmet 
> on Mon, 30 Oct 2017 11:16:30 +0100 writes:

> Hi Frank, You could upload your R source file to a public
> URL, for example to github and read via RCurl, as source
> do not support https as far as I know. 

well... but your knowledge is severely (:-) outdated.
Why did you not try first?

source("https://raw.githubusercontent.com/msuzen/isingLenzMC/master/R/isingUtils.R";)

works for me even in R 3.3.0 which is really outdated itself!

__
R-help@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.


Re: [R] run r script in r-fiddle

2017-10-30 Thread Suzen, Mehmet
Hi Frank,

You could upload your R source file to a public URL, for example to
github and read via RCurl,
as source do not support https as far as I know. Here is a working example.

library('RCurl')
tmatrix <- 
getURL("https://raw.githubusercontent.com/msuzen/isingLenzMC/master/R/isingUtils.R";)
eval(parse(text=tmatrix))

Not that you need to use raw URL for github file.

Best,
-m





On 30 October 2017 at 01:56, Frank Mei  wrote:
> Hi All,
>
> I want to know how to run an R file on my computer in R-Fiddle?
>
> I tried source("filename.r"), but not working.
>
> thanks,
> Frank
>
> [[alternative HTML version deleted]]
>
> __
> R-help@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.

__
R-help@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.


Re: [R] run r script in r-fiddle

2017-10-29 Thread Jeff Newmiller
You can't. Use R on your computer instead. 
-- 
Sent from my phone. Please excuse my brevity.

On October 29, 2017 5:56:55 PM PDT, Frank Mei  wrote:
>Hi All,
>
>I want to know how to run an R file on my computer in R-Fiddle?
>
>I tried source("filename.r"), but not working.
>
>thanks,
>Frank
>
>   [[alternative HTML version deleted]]
>
>__
>R-help@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.

__
R-help@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.


[R] run r script in r-fiddle

2017-10-29 Thread Frank Mei
Hi All,

I want to know how to run an R file on my computer in R-Fiddle?

I tried source("filename.r"), but not working.

thanks,
Frank

[[alternative HTML version deleted]]

__
R-help@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.