Re: [R] [External] Re: [FORGED] Re: Regarding R licensing usage guidance

2019-07-24 Thread Rolf Turner
I despair!!! But this discourse has gone on far too long already, so I shall say no more. cheers, Rolf On 25/07/19 10:33 AM, Tierney, Luke wrote: Thanks Roy -- I was about to write along the same lines. Best, luke On Wed, 24 Jul 2019, Roy Mendelssohn - NOAA Federal via R-help wrote: Hi

Re: [R] Regarding R licensing usage guidance

2019-07-24 Thread Richard O'Keefe
If calling a separate chunk of GPL code forced your code to be GPL, nobody would be able to write proprietary code on Linux. For example, Intel would not be able to sell their C/C++ compiler without offering source code, which they don't. When you are coupling two programs in this way, one questi

Re: [R] Reading recurring data in a text file

2019-07-24 Thread Jeff Newmiller
Sorry, I was on my phone and did not see that you were already using but completely missing the vectorized nature of these functions. Consider the following: # # after executing your sample code slowmethod <- function( whalines ) { lines <- whalines mc_list <- NULL for (i in

Re: [R] [External] Re: [FORGED] Re: Regarding R licensing usage guidance

2019-07-24 Thread Abby Spurdle
I don't think these threads have answered the original question. According to the GPL FAQ: https://www.gnu.org/licenses/gpl-faq.html#IfInterpreterIsGPL "If a programming language interpreter is released under the GPL, does that mean programs written to be interpreted by it must be under GPL-compa

Re: [R] [External] Re: [FORGED] Re: Regarding R licensing usage guidance

2019-07-24 Thread Tierney, Luke
Thanks Roy -- I was about to write along the same lines. Best, luke On Wed, 24 Jul 2019, Roy Mendelssohn - NOAA Federal via R-help wrote: > Hi Rolf: > > As they say, do read the posting guide: > >> Good manners: Remember that customs differ. Some people are very direct. >> Others surround eve

Re: [R] [FORGED] Re: Regarding R licensing usage guidance

2019-07-24 Thread Roy Mendelssohn - NOAA Federal via R-help
Hi Rolf: As they say, do read the posting guide: > Good manners: Remember that customs differ. Some people are very direct. > Others surround everything they say with hedges and apologies. Be tolerant. > Rudeness is never warranted, but sometimes `read the manual’ is the > appropriate respons

Re: [R] [FORGED] Re: Regarding R licensing usage guidance

2019-07-24 Thread Rolf Turner
On 25/07/19 4:36 AM, Weiwen Ng, MPH wrote: Here's one way to phrase your reply: "I'd recommend you search Google. For example, the search string "proprietary use GPL" produces one hit that's clearly relevant to you: This method is more neutrally worded. It doesn't insult the original pos

Re: [R] Reading recurring data in a text file

2019-07-24 Thread Jeff Newmiller
?readLines ?grep ?textConnection On July 24, 2019 11:54:07 AM PDT, "Morway, Eric via R-help" wrote: >The small reproducible example below works, but is way too slow on the >real >problem. The real problem is attempting to extract ~2920 repeated >arrays >from a 60 Mb file and takes ~80 minutes.

Re: [R] Reading recurring data in a text file

2019-07-24 Thread Rui Barradas
Hello, Instead of read.table use data.table::fread It's an order of magnitude faster and all you have to do is to change the function, all arguments are the same (in this case). Hope this helps, Rui Barradas Às 20:18 de 24/07/19, Rui Barradas escreveu: Hello, This is far from a complete

Re: [R] Reading recurring data in a text file

2019-07-24 Thread Rui Barradas
Hello, This is far from a complete answer. A quicky one: no loops. mc_list2 <- grep(srchStr1, lines) tmp_list2 <- grep(srchStr2, lines) identical(mc_list, mc_list2)# [1] TRUE identical(tmp_list, tmp_list2) # [1] TRUE Another one: don't extend lists or vectors inside loops, reserve memor

[R] Reading recurring data in a text file

2019-07-24 Thread Morway, Eric via R-help
The small reproducible example below works, but is way too slow on the real problem. The real problem is attempting to extract ~2920 repeated arrays from a 60 Mb file and takes ~80 minutes. I'm wondering how I might re-engineer the script to avoid opening and closing the file 2920 times as is the

[R] [R-pkgs] pivmet 0.2.0 - Pivotal Methods for Bayesian Relabelling and k-Means Clustering

2019-07-24 Thread legidi
The new version (0.2.0) of rhe 'pivmet' package is released on CRAN: https://CRAN.R-project.org/package=pivmet. The package offers a collection of pivotal algorithms for: relabelling the MCMC chains in order to undo the label switching problem in Bayesian mixture models, as proposed in Egidi et

[R] [R-pkgs] Introducing teamr Package

2019-07-24 Thread Tanbing Yan
Today I am so pleased to introduce my first CRAN package for sending formatted messages to Microsoft Teams, teamr . Motivation is simple here. For years I have been using Slack and built many slash commands and apps using incoming webhooks with R, but ever since

[R] [R-pkgs] {mortyr}

2019-07-24 Thread Mike Page
New package: mortyr. A wrapper to the The Rick and Morty API https://rickandmortyapi.com/ and the most rickdiculous package in the R-verse. Use it to return information about your favourite characters, locations, and episodes from the show. The released version can be found on CRAN: https://C

[R] [R-pkgs] New CRAN Release: SWIM

2019-07-24 Thread Silvana Pesenti
The *SWIM* (Sensitivity Weights for Importance Weights) package is released on CRAN: https://CRAN.R-project.org/package=SWIM. The *SWIM* package provides weights on simulated scenarios from a stochastic model, such that stressed model components (random variables) fulfil given probabilistic constr

Re: [R] Regarding R licensing usage guidance

2019-07-24 Thread Weiwen Ng, MPH
Here's one way to phrase your reply: "I'd recommend you search Google. For example, the search string "proprietary use GPL" produces one hit that's clearly relevant to you: https://opensource.stackexchange.com/questions/7078/is-it-legal-to-use-gpl-code-in-a-proprietary-closed-source-program-by-pu

[R] [R-pkgs] ceramic - download web map tiles to local cache

2019-07-24 Thread Michael Sumner
Hello, There's a new package ceramic to download online imagery tiles. Download imagery tiles to a local cache and load the data into raster objects. Facilities are provided for Amazon 'AWS' terrain https://aws.amazon.com/public-datasets/terrain/ and Mapbox images and terrain https://www.mapbox.

[R] [R-pkgs] Introducing The New Package 'forestRK'

2019-07-24 Thread Hyunjin Cho
Hello, I am pleased to announce my new package forestRK. The package implements Forest-RK algorithm discussed in the paper "Forest-RK: A New Random Forest Induction Method" by Simon Bernard, Laurent Heutte, Sebastien Adam, 4th International Conference on Intelligent Computing (ICIC), Sep 2008,