[R] Add local image as inline embedded Image

2017-04-06 Thread Archit Soni
Hi All, I am using mailR package to send emails by attaching my local image files. However the image still refers to my file location and never truly embeds the image in the email. This came up in testing when my colleague was getting a red cross instead of an image. Any thoughts to resolve this

[R] Wait for batch file to execute

2017-04-13 Thread Archit Soni
Hi All, I am using below code to execute a batch file on server to get me data from an API it looks like: shell.exec('<>\\file.bat') #do next step The problem is that this function shell.exec doesn't wait for the batch file to execute completely and jumps to next line of code. Any ideas how ca

Re: [R] Wait for batch file to execute

2017-04-13 Thread Archit Soni
th having an open mind is that people keep coming along > and sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Thu, Apr 13, 2017 at 8:06 AM, Archit Soni > wrote: > > Hi All, > > > >

Re: [R] Wait for batch file to execute

2017-04-13 Thread Archit Soni
rgument to ?system2. > -- > Sent from my phone. Please excuse my brevity. > > On April 13, 2017 8:06:04 AM PDT, Archit Soni > wrote: > >Hi All, > > > >I am using below code to execute a batch file on server to get me data > >from > >an API > >

[R] Reading XML attriutes in R

2017-04-27 Thread Archit Soni
Hi All, I have a XML file like : GB I want to create a data frame out of this XML but obviously xmlToDataFrame() is not working. It has dynamic attributes like for node precipitation , it could have attributes like value and mode both if there is ppt in some city. My basic is

Re: [R] Reading XML attriutes in R

2017-04-28 Thread Archit Soni
rst("wind/speed") %>% > xml_attrs() > > winddir <- x %>% > xml_find_first("wind/direction") %>% > xml_attrs() > > windspeed > # valuename > # "4.6" "Gentle Breeze" > > winddir >

Re: [R] Reading XML attriutes in R

2017-04-28 Thread Archit Soni
e your email client to send plain text messages > to this list. Typically rich text and html emails get turned into hash by > the R-help list services. > > > On Apr 28, 2017, at 4:25 AM, Archit Soni > wrote: > > > > Thanks Ben, got it working, just want one more hel

[R] Copy and Rename Folder in same directory

2017-05-08 Thread Archit Soni
Hello, Forgive me to ask this kind of naive question. But it would be of immense help if you could help me suggesting a way to copy a folder in the same directory and paste it in the same directory with different name. Ex: C:/Folder A -- C:/Folder A_B Contents should be copied as is. Thanks f

Re: [R] Copy and Rename Folder in same directory

2017-05-08 Thread Archit Soni
Thanks Ben. :) On May 8, 2017 16:06, "Ben Tupper" wrote: > Hi, > > Checkout all of the functions for file/directory management under ?files > (note the plural). > > Cheers, > Ben > > > > On May 8, 2017, at 6:30 AM, Archit Soni > wrote: > &g

Re: [R] Copy and Rename Folder in same directory

2017-05-08 Thread Archit Soni
=T) # copy the files to the new folder file.copy(list.of.files, new.folder) But i am still getting FALSE and files are not getting copied from the folder. However,if I give a single file name it copies that file to new folder. Any thoughts ? On Mon, May 8, 2017 at 4:07 PM, Archit Soni wrote: &g

Re: [R] Copy and Rename Folder in same directory

2017-05-08 Thread Archit Soni
,recursive = TRUE) On Mon, May 8, 2017 at 4:36 PM, Duncan Murdoch wrote: > On 08/05/2017 6:59 AM, Archit Soni wrote: > >> Hey Ben, >> >> I tried this, >> >> # identify the folders >> current.folder <- "C:/Where my files currently live" >>

Re: [R] Copy and Rename Folder in same directory

2017-05-08 Thread Archit Soni
No Ben, I want to copy the contents and have the original file is as master file. On Mon, May 8, 2017 at 4:42 PM, Ben Tupper wrote: > My eye gets drawn immediately to file.rename() - did you give that a shake? > > > > On May 8, 2017, at 6:59 AM, Archit Soni wrote: > > Hey

[R] Print minified XML in tree format

2015-12-14 Thread Archit Soni
Hi All, I am new to wonderful world of R, I am stuck at one problem. I need to print the minified XML string in tree format, i have tried below code: ex <- "ToveJaniReminderDon't forget me this weekend!"> > XML::xmlParse(ex) Tove Jani Reminder Don't forget me this weekend! ​and it is

[R] TIBCO Enterprise Runtime for R

2015-12-15 Thread Archit Soni
Hi All, I have the code to print XML tree that is working successfully in R Studio but is failing when i try to work it out with TERR: x<- XML::xmlParse(y) y is input (Coming from a row only once) x is output The above code is working in R studio but doesnt work in TERR, please suggest. TIBCO

Re: [R] Print minified XML in tree format

2015-12-15 Thread Archit Soni
Thanks Giorgio, for the docs! :) However my main aim was to make it run in TERR(TIBCO Enterprise Runtime Engine for R), but it is throwing some different error but was working fine in R Studio. Error:Could not execute function call. TIBCO Enterprise Runtime for R returned an error: 'Error in

Re: [R] TIBCO Enterprise Runtime for R

2015-12-16 Thread Archit Soni
CO Software > wdunlap tibco.com > > > On Tue, Dec 15, 2015 at 5:09 AM, Archit Soni > wrote: > > Hi All, > > > > I have the code to print XML tree that is working successfully in R > Studio > > but is failing when i try to work it out with TERR: > &g

Re: [R] TIBCO Enterprise Runtime for R

2015-12-16 Thread Archit Soni
n't even survive a > save/load cycle in R. You probably want to a column of data, numeric > or character, from it and send that back to Spotfire. > > Bill Dunlap > TIBCO Software > wdunlap tibco.com > > > On Wed, Dec 16, 2015 at 12:35 AM, Archit Soni > wrote

[R] Trycatch in R

2015-12-22 Thread Archit Soni
Hi All, Please help me in the below code: tryCatch({ x <- capture.output(XML::xmlParse(y)) }, warning = function(w) { x <- capture.output(w) }, error = function(e) { x <-capture.output(e) }, finally = { }) I am using Tibco Enterprise Runtime for R to get value of the parsed XML in vector f

[R] Fwd: Trycatch in R

2015-12-23 Thread Archit Soni
ain! Best Regards, Archit -- Forwarded message ------ From: Archit Soni Date: Tue, Dec 22, 2015 at 6:34 AM Subject: Trycatch in R To: r-help@r-project.org Hi All, Please help me in the below code: tryCatch({ x <- capture.output(XML::xmlParse(y)) }, warning = func

Re: [R] TIBCO Enterprise Runtime for R

2015-12-23 Thread Archit Soni
ult with Spotfire experts (at TIBCO support or > community.tibco.com) to figure out the best way to display this in > Spotfire. You may have to embed it > in html to get the formatting right. > > Bill Dunlap > TIBCO Software > wdunlap tibco.com > > > On Wed, Dec 16, 20

[R] Fraud detection Model in R

2016-01-10 Thread Archit Soni
Hello R lovers, For the upcoming hackathon I have thought of an idea to flag fraudulent claims with the probability and send an email to the designated parties that a fraudulent claim has been submitted and the probability is x. I am new to R, but what I have researched on the internet is that I

[R] R Studio error while installing twitteR package

2016-01-31 Thread Archit Soni
Hi All, I am getting below error while installing package "twitteR" , but it gets successfuly installed via R console, any ideas ? *Error:* *install.packages("twitteR", lib="C:/Program Files/TIBCO/terrde40/site-library")Trying to download URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/twi

Re: [R] R Studio error while installing twitteR package

2016-01-31 Thread Archit Soni
​Ya Duncan, but I searched bit more ​and got the solution to remap the working directory and if the issue still persists then we change the CRAN mirror. Now it is working fine. Thanks, Archit On Sun, Jan 31, 2016 at 5:40 PM, Duncan Murdoch wrote: > On 31/01/2016 5:56 AM, Archit Soni wr

[R] JSON data in data frame

2017-01-13 Thread Archit Soni
Hi All, Warm greetings, I am stuck at an issue to convert incoming json response to data frame. I am using below code to get the data library(jsonlite) d1 <- fromJSON(' http://api.openweathermap.org/data/2.5/group?id=524901,703448,2643743&units=metric&appid=ec0313a918fa729d4372555ada5fb1f8 ') d

Re: [R] JSON data in data frame

2017-01-13 Thread Archit Soni
703448,2643743&units=metric&appid= ec0313a918fa729d4372555ada5fb1f8') names(d1) str(d1) d1 d1$list your_data = d1$list On Fri, Jan 13, 2017 at 1:12 AM, Archit Soni wrote: > Hi All, > > Warm greetings, I am stuck at an issue to convert incoming json response to > data frame. >

Re: [R] JSON data in data frame

2017-01-14 Thread Archit Soni
://api.openweathermap.org/data/2.5/ > group?id=524901,703448,2643743&units=metric&appid= > ec0313a918fa729d4372555ada5fb1f8') > names(d1) > str(d1) > d1 > d1$list > your_data = d1$list > > On Fri, Jan 13, 2017 at 1:12 AM, Archit Soni > wrote: > >&g

Re: [R] JSON data in data frame

2017-01-14 Thread Archit Soni
mail wrapping errors and it > seemed to work: > > library(jsonlite) > dat<- fromJSON('http://api.openweathermap.org/data/2.5/group?id= > 524901,703448,2643743&units=metric&appid=ec0313a918fa729d4372555ada5fb1f8 > ') > tab <- dat$list > > Avoid the li

Re: [R] JSON data in data frame

2017-01-14 Thread Archit Soni
80 NA NA 0 1484418000 > 2643743 > name id main description icon > 1 Moscow 620 Snow light shower snow 13n > 2 Kiev 520 Rain light intensity shower rain 09n > 3 London 800 ClearSky is Clear 01n > > -

[R] Remove dependency of Image's physical location while sending email.

2017-03-28 Thread Archit Soni
Hello All, I am using below code to send alerts from R. However, while testing the emails to other users The image which is used as inline in email configuration is not showing up as it is referencing to my temp folder. Any ideas to resolve this ? I need to have embedded image irrespective of the