Re: [R] System GMM yields identical results for any weighting matrix

2024-04-23 Thread Bert Gunter
Sorry, my advice is incorrect (and I should have known better!). Task views are to search for relevant packages, not for posting questions. R "special interest groups" (SIGs) are for the latter, which in your case might be this one: https://stat.ethz.ch/mailman/listinfo/r-sig-finance . Cheers, Ber

Re: [R] System GMM yields identical results for any weighting matrix

2024-04-23 Thread Bert Gunter
Generally speaking, this sort of detailed statistical question about a speccial package in R does not get a reply on this general R programming help list. Instead, I suggest you either email the maintainer (found by ?maintainer) or ask a question on a relevant R task view, such as https://cran.r-pr

[R] System GMM yields identical results for any weighting matrix

2024-04-23 Thread Richard Hardy
A copy of this question can be found on Cross Validated: https://stats.stackexchange.com/questions/645362 I am estimating a system of seemingly unrelated regressions (SUR) in R. Each of the equations has one unique regressor and one common regressor. I am using `gmm::sysGmm` and am experimenting w

[R] System GMM fails due to computationally singular system. Why?

2024-04-23 Thread Richard Hardy
A copy of this question can be found on Cross Validated: https://stats.stackexchange.com/questions/645610 I am estimating a system of seemingly unrelated regressions (SUR) with `gmm::sysGmm` in R. Each of the equations has one unique regressor and one common regressor. The common regressor is a du

Re: [R] System Requirements

2020-09-01 Thread Firpo, Mike via R-help
22, 2020 9:57 AM To: Patrick (Malone Quantitative) ; Firpo, Mike Cc: R-help Subject: Re: [R] System Requirements Dear Mike, On 2020-08-22 11:50 -0400, Patrick (Malone Quantitative) wrote: | On Sat, Aug 22, 2020 at 11:44 AM Firpo, Mike wrote: | | | | Hello, | | | | Reading the FAQ, I'm con

Re: [R] System Requirements

2020-08-22 Thread Rasmus Liland
Dear Mike, On 2020-08-22 11:50 -0400, Patrick (Malone Quantitative) wrote: | On Sat, Aug 22, 2020 at 11:44 AM Firpo, Mike wrote: | | | | Hello, | | | | Reading the FAQ, I'm confused about | | whether R 4.0.2 is tested on Windows | | 7. I found the following: | | | | | 2.24 Does R run under Win

Re: [R] System Requirements

2020-08-22 Thread Duncan Murdoch
I don't know the answer to your main question, but if you're interested in knowing when that was written, you can see here https://github.com/wch/r-source/blame/trunk/doc/manual/R-FAQ.texi for the main FAQ, and here: https://github.com/wch/r-source/blame/trunk/doc/manual/rw-FAQ.texi for the W

Re: [R] System Requirements

2020-08-22 Thread Rui Barradas
Hello, Yes, R 4.0.2 works on Windows 7. As for Vista, I don't know, never tried. Hope this helps, Rui Barradas Às 18:52 de 21/08/20, Firpo, Mike via R-help escreveu: Hello, Reading the FAQ, I'm confused about whether R 4.0.2 is tested on Windows 7. I found the following: 2.24 Does R r

Re: [R] System Requirements

2020-08-22 Thread Patrick (Malone Quantitative)
Try it and see? On Sat, Aug 22, 2020 at 11:44 AM Firpo, Mike via R-help < r-help@r-project.org> wrote: > Hello, > > Reading the FAQ, I'm confused about whether R 4.0.2 is tested on Windows > 7. I found the following: > > > 2.24 Does R run under Windows Vista/7/8/Server 2008? > > > > It does. .

[R] System Requirements

2020-08-22 Thread Firpo, Mike via R-help
Hello, Reading the FAQ, I'm confused about whether R 4.0.2 is tested on Windows 7. I found the following: > 2.24 Does R run under Windows Vista/7/8/Server 2008? > > It does. ... > 2.2 How do I install R for Windows? > > Current binary versions of R are known to run on Windows 7 or later, >

Re: [R] System("source activate condaenv")

2019-03-20 Thread Bert Gunter
R is *not* RStudio. Please go to the RStudio site, not here, for help with that software. Bert Gunter "The trouble with 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 Wed, Mar 20, 2019 at

Re: [R] System("source activate condaenv")

2019-03-20 Thread Ivan Krylov
quot;. /home/ubuntu/miniconda3/bin/activate minvar", that is, just a dot instead of the word "source". But the underlying issue would stay the same: R system() function launches a subprocess /bin/sh; the "source" or "." command causes the environment of the *child* shel

[R] System("source activate condaenv")

2019-03-20 Thread Sandra Elisabeth Chaudron
Hi, I am using the server version of RStudio and I have a script where I want to activate the conda environment that I set up for a bioinformatic tool called MinVar. For that I use in my script the command: system("source /home/ubuntu/miniconda3/bin/activate minvar"). I provide the path to activate

Re: [R] system solver in R

2018-11-21 Thread peter dalgaard
Once you figure out how to decipher the output, you realise that it actually does give you all 4 roots, including the two real ones: ... > a <- .Last.value > complex_cartesian <- function(x,y) x+(0+1i)*y > eval(a$text[[1]][[2]][[3]]) [1] -1.00028+0.988174i > eval(a$text[[1]][[3]][[3]]) [1] -1.000

Re: [R] system solver in R

2018-11-20 Thread Engin Yılmaz
Yes, it works for me. Eik Vettorazzi , 21 Kas 2018 Çar, 00:19 tarihinde şunu yazdı: > How about this: > > library(rootSolve) > f1<-function(x)5/((1+x)^1) + 5/((1+x)^2) + 5/((1+x)^3) + 105/((1+x)^4) -105 > uniroot.all( f1,c(-1e6,1e6)) > > [1] -1.9881665 0.0363435 > > Cheers > > > Am 20.11.2018 um

Re: [R] system solver in R

2018-11-20 Thread Eik Vettorazzi
How about this: library(rootSolve) f1<-function(x)5/((1+x)^1) + 5/((1+x)^2) + 5/((1+x)^3) + 105/((1+x)^4) -105 uniroot.all( f1,c(-1e6,1e6)) [1] -1.9881665 0.0363435 Cheers Am 20.11.2018 um 13:09 schrieb Engin Yılmaz: Dea(R) I try to solve one equation but this program did not give me real r

Re: [R] system solver in R

2018-11-20 Thread J C Nash
A bit pedestrian, but you might try pf <- function(x){5/((1+x)^1) + 5/((1+x)^2) + 5/((1+x)^3) + 105/((1+x)^4) -105} uniroot(pf,c(-10,10)) curve(pf, c(-10,10)) require(pracma) tryn <- newton(pf, 0) tryn pf(0) pf(0.03634399) yc <- c(-105, 5,5,5,105) rooty <- polyroot(yc) rooty rootx <- 1/rooty - 1 r

Re: [R] system solver in R

2018-11-20 Thread Engin Yılmaz
Dea(R) I try to solve one equation but this program did not give me real roots for example yacas("Solve( 5/((1+x)^1) + 5/((1+x)^2) + 5/((1+x)^3) + 105/((1+x)^4) -105 ==0, x)") gave me following results How can I find real roots? expression(list(x == complex_cartesian((1/42 - ((1/63 - ((root(733945

Re: [R] system solver in R

2018-11-20 Thread Engin Yılmaz
Thanks a lot! Berend Hasselman , 20 Kas 2018 Sal, 12:02 tarihinde şunu yazdı: > > > R package Ryacas may be what you want. > > Berend > > > > On 20 Nov 2018, at 09:42, Engin Yılmaz wrote: > > > > Dea(R) > > > > Do you know any system solver in R ? > > > > For example, in matlab, is very easy > >

Re: [R] system solver in R

2018-11-20 Thread Berend Hasselman
R package Ryacas may be what you want. Berend > On 20 Nov 2018, at 09:42, Engin Yılmaz wrote: > > Dea(R) > > Do you know any system solver in R ? > > For example, in matlab, is very easy > > syms a b c x eqn = a*x^2 + b*x + c == 0; sol = solve(eqn) > > How can I find this type code in

[R] system solver in R

2018-11-20 Thread Engin Yılmaz
Dea(R) Do you know any system solver in R ? For example, in matlab, is very easy syms a b c x eqn = a*x^2 + b*x + c == 0; sol = solve(eqn) How can I find this type code in R (or directly solver)? *Since(R)ely* Engin YILMAZ [[alternative HTML version deleted]] ___

[R] system() or pipe(..., open = "r") without child process?

2018-05-22 Thread Benjamin Tyner
Greetings On linux, is it possible to invoke an OS command from within R without spawning a child process? If not, is it possible to avoid copying the "parts of the caller's context" that are mentioned on the clone manpage?  ENOMEM Cannot  allocate  sufficient memory to allocate a task struct

Re: [R] system call removes special characters from text output

2017-04-05 Thread stephen sefick
; > At a shell prompt: > > [72]% ./tmp.pl > [A/B] > > Inside R: > > > system(' ./tmp.pl') > [A/B] > > > -- > Don MacQueen > > Lawrence Livermore National Laboratory > 7000 East Ave., L-627 > Livermore, CA 94550 > 925-423-1062

Re: [R] system call removes special characters from text output

2017-04-05 Thread MacQueen, Don
I can't reproduce this. On my system, the contents of an executable file named tmp.pl: #! /opt/local/bin/perl print "[A/B]\n"; At a shell prompt: [72]% ./tmp.pl [A/B] Inside R: > system(' ./tmp.pl') [A/B] -- Don MacQueen Lawrence Livermore National Labo

Re: [R] system call removes special characters from text output

2017-04-04 Thread Bert Gunter
... and perhaps worth noting (again) is that one of the benefits of producing a repro ex is that it often reveals such bugs to the prospective poster, thus obviating the need to post. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things

Re: [R] system call removes special characters from text output

2017-04-04 Thread stephen sefick
Hello everyone, Again, I apologize for not providing a reproducible example. There was a small (but important) bug in my R code having nothing to do with system(), this is now fixed, and everything is working as expected this morning. The lesson for me is time to stop coding after 10 PM. Thank you

Re: [R] system call removes special characters from text output

2017-04-04 Thread Boris Steipe
The "whatever information" would be the usual minimal reproducible example. Since you think your code works at the shell level, make up an example with a system call to "echo". Then state what you expect to happen and what happens instead. B. > On Apr 4, 2017, at 12:44 AM, stephen sefick wro

Re: [R] system call removes special characters from text output

2017-04-03 Thread stephen sefick
Hi Jeff, My apologies for not providing enough information. The perl code works as expected at the shell (without calling it from R). I have tried the system call inside of an ESS R session and at a the shell. Both of these produce the unexpected result. I can provide whatever information that is

Re: [R] system call removes special characters from text output

2017-04-03 Thread Jeff Newmiller
Sorry, RPsychic package not found. Please install package reprex, apply it to your problem and try again. Note that if this problem can only be produced from within a package then there is an R-package-devel mailing list that would be a more appropriate place to ask. Also, if the problem is actu

[R] system call removes special characters from text output

2017-04-03 Thread stephen sefick
Hello, I am writing an R package, and I am using system() to call a perl script. The output of the perl script is correct except for "[A/B]" is output as "AB". Can someone explain this behavior. I would like to try and fix this. many thanks, Stephen Sefick -- Let's not spend our time and resour

Re: [R] System of equations with unknowns in R

2016-07-20 Thread David Winsemius
> On Jul 20, 2016, at 10:20 AM, Sachin Kuruvithadam wrote: > > > > I have a 3x3 matrix Omega whose elements are unknown, and a defined 3x1 > parameter vector alpha. I want to define a 3x1 vector delta whose elements > are still unknown but depend on alpha and Omega as shown in this image >

Re: [R] System of equations with unknowns in R

2016-07-20 Thread Berend Hasselman
coledì 20 luglio 2016 20.57 > A: Berend Hasselman > Cc: r-help@r-project.org > Oggetto: Re: [R] System of equations with unknowns in R > > > > Sorry for the empty email, here's a link to the formula: > https://unsee.cc/zasobuge/ > Unsee — Free online private photo sh

Re: [R] System of equations with unknowns in R

2016-07-20 Thread Sachin Kuruvithadam
elp@r-project.org Oggetto: Re: [R] System of equations with unknowns in R Sorry for the empty email, here's a link to the formula: https://unsee.cc/zasobuge/ unsee.cc K is actually intended to be a number. What I need is a way to find the vector delta as a function of the element

Re: [R] System of equations with unknowns in R

2016-07-20 Thread Berend Hasselman
uglio 2016 20.13 > A: Sachin Kuruvithadam > Cc: r-help@r-project.org > Oggetto: Re: [R] System of equations with unknowns in R > > > > On 20 Jul 2016, at 20:07, Berend Hasselman wrote: > > > > > > > > This functions a scalar not a function >

Re: [R] System of equations with unknowns in R

2016-07-20 Thread Sachin Kuruvithadam
d� 20 luglio 2016 20.13 A: Sachin Kuruvithadam Cc: r-help@r-project.org Oggetto: Re: [R] System of equations with unknowns in R > On 20 Jul 2016, at 20:07, Berend Hasselman wrote: > > > > This functions a scalar not a function Correction. This should have been This function returns a

Re: [R] System of equations with unknowns in R

2016-07-20 Thread Berend Hasselman
> On 20 Jul 2016, at 20:07, Berend Hasselman wrote: > > > > This functions a scalar not a function Correction. This should have been This function returns a scalar not a vector. Berend Hasselman __ R-help@r-project.org mailing list -- To UNSUBSCR

Re: [R] System of equations with unknowns in R

2016-07-20 Thread Berend Hasselman
> On 20 Jul 2016, at 19:20, Sachin Kuruvithadam wrote: > > > > I have a 3x3 matrix Omega whose elements are unknown, and a defined 3x1 > parameter vector alpha. I want to define a 3x1 vector delta whose elements > are still unknown but depend on alpha and Omega as shown in this image > (sor

[R] System of equations with unknowns in R

2016-07-20 Thread Sachin Kuruvithadam
I have a 3x3 matrix Omega whose elements are unknown, and a defined 3x1 parameter vector alpha. I want to define a 3x1 vector delta whose elements are still unknown but depend on alpha and Omega as shown in this image (sorry, but when I write in Latex format it doesn't appear formatted in my p

Re: [R] system() command not working

2016-06-05 Thread J Payne
udio >> >>or >> >>MRT_DATA_DIR= open -a R >> >>Try it and see what happens. >>It may even be possible to put something in .Rprofile setting your >>environment variables. >> >>Berend Hasselman >> >>> HTH, >>> >

Re: [R] system() command not working

2016-06-05 Thread J Payne
o put something in .Rprofile setting your >environment variables. > >Berend Hasselman > >> HTH, >> >> -Roy >> >>> On Jun 4, 2016, at 11:59 AM, J Payne wrote: >>> >>> I’ve posted this question on StackExchange at >>> http

Re: [R] system() command not working

2016-06-05 Thread J Payne
can’t remember what the work around was for it. > >HTH, > >-Roy > >> On Jun 4, 2016, at 11:59 AM, J Payne wrote: >> >> I’ve posted this question on StackExchange at >> http://stackoverflow.com/questions/37604466/r-system-not-working-with-modis-reprojection-tool, &

Re: [R] system() command not working

2016-06-05 Thread Berend Hasselman
ed this question on StackExchange at >> http://stackoverflow.com/questions/37604466/r-system-not-working-with-modis-reprojection-tool, >> but haven’t received any replies. I’m hoping that someone who understands >> the operation of the R system() command can help. >>

Re: [R] system() command not working

2016-06-04 Thread Roy Mendelssohn - NOAA Federal
, because i can’t remember what the work around was for it. HTH, -Roy > On Jun 4, 2016, at 11:59 AM, J Payne wrote: > > I’ve posted this question on StackExchange at > http://stackoverflow.com/questions/37604466/r-system-not-working-with-modis-reprojection-tool, > but haven’t recei

[R] system() command not working

2016-06-04 Thread J Payne
I’ve posted this question on StackExchange at http://stackoverflow.com/questions/37604466/r-system-not-working-with-modis-reprojection-tool, but haven’t received any replies.  I’m hoping that someone who understands the operation of the R system() command can help.  I have a command that

[R] System exactly singular with pgmm (package plm)

2015-08-14 Thread Luca Gagliardone
his is my first post, I'll do my best to be clear and complete. I am trying to run a pgmm regression (Arellano Bond estimator) following the example online with the EmplUK dataset. My dataset is unbalanced, with some missing values (that I also removed, without any difference). This is the paste

Re: [R] system()

2014-04-15 Thread Rui Barradas
- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Rui Barradas Sent: Monday, April 14, 2014 12:09 PM To: Doran, Harold; r-help@r-project.org Subject: Re: [R] system() Hello, Try instead command <- paste(aa, fnm) system(command) And read the help page

Re: [R] system()

2014-04-14 Thread Daniel Nordlund
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of Rui Barradas > Sent: Monday, April 14, 2014 12:09 PM > To: Doran, Harold; r-help@r-project.org > Subject: Re: [R] system() > > Hello, > > Try in

Re: [R] system()

2014-04-14 Thread Rui Barradas
Hello, Try instead command <- paste(aa, fnm) system(command) And read the help page for ?paste Hope this helps, Rui Barradas Em 14-04-2014 20:02, Doran, Harold escreveu: I need to send a system command to another program from within R but have a small hangup I'm trying to do something li

[R] system()

2014-04-14 Thread Doran, Harold
I need to send a system command to another program from within R but have a small hangup I'm trying to do something like this system("notepad myfile.txt") But, more generally this is happening to multiple files, so I loop over thousands of files. For purposes of an example, my code is somethin

Re: [R] Declare BASH Array Using R System Function

2013-07-29 Thread Dario Strbenac
Thank you. This answers my question. I am using Linux, too. From: arun [smartpink...@yahoo.com] Sent: Monday, 29 July 2013 11:11 PM To: Dario Strbenac Cc: R help Subject: Re: [R] Declare BASH Array Using R System Function Hi, system("names=(X Y);

Re: [R] Declare BASH Array Using R System Function

2013-07-29 Thread arun
Cc: Sent: Sunday, July 28, 2013 10:00 PM Subject: [R] Declare BASH Array Using R System Function Hello, It is difficult searching for previous posts about this since the keywords are short and ambiguous, so I hope this is not a duplicate question. I can easily declare an array on the comma

Re: [R] Declare BASH Array Using R System Function

2013-07-29 Thread Prof Brian Ripley
ot a duplicate question. I can easily declare an array on the command line. $ names=(X Y) $ echo ${names[0]} X I am unable to do the same from within R. system("names=(X Y)") sh: Syntax error: "(" unexpected Reading the documentation for the system function, it appears to

Re: [R] Declare BASH Array Using R System Function

2013-07-29 Thread peter dalgaard
rom my phone. Please excuse my brevity. > > Dario Strbenac wrote: >> Hello, >> >> It is difficult searching for previous posts about this since the >> keywords are short and ambiguous, so I hope this is not a duplicate >> question. >> >> I c

Re: [R] Declare BASH Array Using R System Function

2013-07-28 Thread Jeff Newmiller
clare an array on the command line. > >$ names=(X Y) >$ echo ${names[0]} >X > >I am unable to do the same from within R. > >> system("names=(X Y)") >sh: Syntax error: "(" unexpected > >Reading the documentation for the system function, it appears to

[R] Declare BASH Array Using R System Function

2013-07-28 Thread Dario Strbenac
Hello, It is difficult searching for previous posts about this since the keywords are short and ambiguous, so I hope this is not a duplicate question. I can easily declare an array on the command line. $ names=(X Y) $ echo ${names[0]} X I am unable to do the same from within R. > sys

[R] system() stdout not recieved

2013-02-17 Thread John Broecher
I would like to execute a python script from R and receive the stdout in R. I have windows xp and R 2.14.2. The test.py script should print "hello", it does work in cmd. Here is a couple tries, thanks for any suggestions!John > system('cmd test.py', intern = TRUE)[1] "Microsoft Windows XP [Vers

Re: [R] System problem: Sys.time() returns GMT, says NZDT

2012-11-16 Thread Uwe Ligges
On 12.11.2012 22:35, Worik R wrote: When I say: Sys.time() [1] "2012-11-12 21:30:14 NZDT" But that is not what my clock on the wall and my system say. Cannot show you my clock but... worik@lemy:/tmp$ date Tue Nov 13 10:32:20 NZDT 2012 Sys.time() is returning GMT Confusing: Above yo

[R] System problem: Sys.time() returns GMT, says NZDT

2012-11-12 Thread Worik R
When I say: > Sys.time() [1] "2012-11-12 21:30:14 NZDT" > But that is not what my clock on the wall and my system say. Cannot show you my clock but... worik@lemy:/tmp$ date Tue Nov 13 10:32:20 NZDT 2012 Sys.time() is returning GMT $version.string [1] "R version 2.14.1 (2011-12-22)" > Sys.ti

Re: [R] system is computationally singular: reciprocal condition number

2012-10-26 Thread langvince
Adding a small random value (0,0001-0,0009) to all values helped to solve the problem. Thank You everyone, who helped. -- View this message in context: http://r.789695.n4.nabble.com/system-is-computationally-singular-reciprocal-condition-number-tp4647472p4647540.html Sent from the R help mail

Re: [R] system is computationally singular: reciprocal condition number

2012-10-26 Thread langvince
Hi Thomas, thanks for the comment. I had a similar idea, so got rid of the rounding (these are laboratory measurement based data, thats why I have rounded to only 2 decimal values, but I also tried with 4 and got the same. I will try to get rid of the many 0s with random noise, hopefully it will

Re: [R] system is computationally singular: reciprocal condition number

2012-10-25 Thread langvince
Hey David, my answers are delayed here, although I am not using my gmail email address:) Yep thats right, those bands of zeros are one of the most important values to define one group, and have a nice distance from the rest of the groups :). I cannot really get rid of those, I bet it would not h

Re: [R] system is computationally singular: reciprocal condition number

2012-10-25 Thread langvince
Hey Bert, thanks for your fast reply. Yes, based on svd it is singular. The "no way" statement was because of the source of the dataset. I would not expect that. I never used the stats Maha dist calc, but after giving it a shot, not a surprise still singular. Any idea how to manipulate the data

Re: [R] system is computationally singular: reciprocal condition number

2012-10-25 Thread Thomas Lumley
On Fri, Oct 26, 2012 at 12:14 PM, langvince wrote: > Whatever I do, however I subset it I get the "system is computationally > singular: reciprocal condition number" error. > I know what it means and I know what should be the problem, but there is no > way this is a singular matrix. > > I have up

Re: [R] system is computationally singular: reciprocal condition number

2012-10-25 Thread David Winsemius
On Oct 25, 2012, at 4:41 PM, Bert Gunter wrote: > 1. I don't know what StatMatch is. Try using stats::mahalanobis. > > 2. It's the covariance matrix that is **numerically** singular and > can't be inverted. Why do you claim that there's "no way" this could > be true when there are hundreds of va

Re: [R] system is computationally singular: reciprocal condition number

2012-10-25 Thread Bert Gunter
1. I don't know what StatMatch is. Try using stats::mahalanobis. 2. It's the covariance matrix that is **numerically** singular and can't be inverted. Why do you claim that there's "no way" this could be true when there are hundreds of variables (= dimensions). 3. Try calculating the svd of your

[R] system is computationally singular: reciprocal condition number

2012-10-25 Thread langvince
Hi folks, I know, this is a fairly common question and I am really disappointed that I could not find a solution. I am trying to calculate Mahanalobis distances in a data frame, where I have several hundreds groups and several hundreds of variables. Whatever I do, however I subset it I get the "s

Re: [R] System/SUR equations and panel

2012-10-08 Thread Arne Henningsen
Hi Alok On 3 October 2012 17:28, Alok K Bohara, PhD wrote: > I was wondering if there is any R package to estimate a two-or three > equation system in a panel setting. > > Say, I have 100 firms and their expenditure on wind generated power and > solar-generated power. > > S_i = X1_i*b1 + u1_i > W

[R] System/SUR equations and panel

2012-10-03 Thread Alok K Bohara, PhD
Hi: I was wondering if there is any R package to estimate a two-or three equation system in a panel setting. Say, I have 100 firms and their expenditure on wind generated power and solar-generated power. S_i = X1_i*b1 + u1_i W_i = X2_i* b2 + u2_i (X1 and X2 need not be the same.. but for s

[R] System Invocation Error - Cspade

2012-07-18 Thread sdoberman
I am trying to run the cspade function in the arulesSequences package in R. After I successfully read in my transactions using read_baskets, I try to execute the cspade function against the transactions object I read in. However, when I execute the command, I obtain an error: system invocation fa

Re: [R] system() under windows [x] but not with Mac

2012-05-21 Thread MacQueen, Don
The Mac does not have an application called notepad, so you can't "save a text in [your] notepad". However, the Mac has TextEdit, and if you save any file with the ".txt" suffix it will open in TextEdit when you double-click on it in a Finder window (outside R, that is). You could even, from insid

Re: [R] system() under windows [x] but not with Mac

2012-05-21 Thread Joshua Wiley
On Mon, May 21, 2012 at 6:25 AM, David Winsemius wrote: > > On May 20, 2012, at 6:49 PM, barb wrote: > >> Hey Guys, >> >> i am kind of confused. Under windows the system() function works great, >> but >> not with my mac. >>  I have two questions: >> >> 1) What do i have to change. Using packages w

Re: [R] system() under windows [x] but not with Mac

2012-05-21 Thread David Winsemius
On May 20, 2012, at 6:49 PM, barb wrote: Hey Guys, i am kind of confused. Under windows the system() function works great, but not with my mac. I have two questions: 1) What do i have to change. Using packages which require system or eval(parse() everything is fine, but when i try it myse

[R] system() under windows [x] but not with Mac

2012-05-21 Thread barb
Hey Guys, i am kind of confused. Under windows the system() function works great, but not with my mac. I have two questions: 1) What do i have to change. Using packages which require system or eval(parse() everything is fine, but when i try it myself "sh: cmd: command not found" Under windows i

Re: [R] system command to a specific shell (bash)

2012-04-17 Thread Uwe Ligges
On 17.04.2012 01:26, MacQueen, Don wrote: I believe that shell() was superceded by system(), quite a long time ago. Not really, under Windows, shell() will start a shell while system() won't. Uwe Ligges However, I get this: foo<- system('printenv',intern=TRUE) ; foo[grepl('SHELL',foo)]

Re: [R] system command to a specific shell (bash)

2012-04-16 Thread MacQueen, Don
I believe that shell() was superceded by system(), quite a long time ago. However, I get this: > foo <- system('printenv',intern=TRUE) ; foo[grepl('SHELL',foo)] [1] "SHELL=/bin/tcsh" "XTERM_SHELL=/bin/tcsh" And tcsh is my login shell, i.e., as specified for my account at the OS level. To m

Re: [R] system command to a specific shell (bash)

2012-04-16 Thread Justin Haynes
Thanks Jeff, but I'm running a python program that expects certain functionality that bash provides and sh doesn't... I can just stop using github checkouts and use system packages though and fix this. I'm mostly wondering where the "shell" command went in base R... it sounds like it completely s

Re: [R] system command to a specific shell (bash)

2012-04-16 Thread Jeff Newmiller
You could make a hash bang bash script that sources the file and then proceeds to do whatever you want. Bourne shell should have no problems invoking another shell. --- Jeff NewmillerThe .

[R] system command to a specific shell (bash)

2012-04-16 Thread Justin Haynes
I need to run a bash command, but when you call system() the default shell is sh (see my sessionInfo below). I found the shell command ( http://www.stat.ucl.ac.be/ISdidactique/Rhelp/library/base/html/shell.html) but it seems to be disappeared in current versions of R? I am running all this from R C

Re: [R] system command and Perl confusion

2012-04-06 Thread Nathan McIntyre
In contrast, running the Perl script from within R, it tries to find the >modules in /System/Library/Perl/5.10.0/... > >I see that this is not necessarily a pure R question, but as it occurs >specifically using the R system command I thought there might be someone >around here who

[R] system command and Perl confusion

2012-04-06 Thread Maxim
ontrast, running the Perl script from within R, it tries to find the modules in /System/Library/Perl/5.10.0/... I see that this is not necessarily a pure R question, but as it occurs specifically using the R system command I thought there might be someone around here who came across similar proble

Re: [R] System is computationally singular error when using cholesky decompostion in MCMC

2012-02-20 Thread R. Michael Weylandt
For question 2, my personal favorite is options(error=recover) which will let you take a look at all levels of the call stack as soon as an error is signaled. The debug package on CRAN is popular but I've never used it. Michael On Mon, Feb 20, 2012 at 7:18 PM, Shantanu MULLICK wrote: > Hello Eve

[R] System is computationally singular error when using cholesky decompostion in MCMC

2012-02-20 Thread Shantanu MULLICK
Hello Everyone I have a MCMC loop to calculate a time varying hierarchical Bayesian structure. This requires me to use around 5-6 matrix inversions in the loop. I use cholesky and chol2inv for the matrix decomposition. Because of the data I am working with I am required to invert a 167 by 167 m

[R] RC33 8th Int Conf on Social Science Methodology -- The R System ...

2011-11-02 Thread John Maindonald
ocial science researchers and users of research. " The title for the planned session is: "The R System as a Platform for Analysis and Development of Analysis Methodology" http://conference.acspri.org.au/index.php/rc33/2012/schedConf/trackPolicies John Maindonald

Re: [R] R system command does not work with objects/variables

2011-08-23 Thread Johann Hibschman
syrvn writes: > If I store the path in a variable/object and call the perl script again it > does not run and I don't know how to overcome that issue. > > p1 <- "../path1" > p2 <- "../path2" > p3 <- "../path3" > > system("perl p1 p2 p3") You want something like: system(paste("perl", p1, p2, p

Re: [R] R system command does not work with objects/variables

2011-08-23 Thread syrvn
Hi, it works great with the paste command! thanks a lot! Best, syrvn -- View this message in context: http://r.789695.n4.nabble.com/R-system-command-does-not-work-with-objects-variables-tp3762544p3762583.html Sent from the R help mailing list archive at Nabble.com

Re: [R] R system command does not work with objects/variables

2011-08-23 Thread Prof Brian Ripley
See ?paste or use system2("perl", shQuote(c(p1, p2, p3))) On Tue, 23 Aug 2011, syrvn wrote: Hello! with the R system command I would like to call a perl script which needs an input directory and an output directory in form of a path. When I put in the path directly it works. The s

[R] R system command does not work with objects/variables

2011-08-23 Thread syrvn
Hello! with the R system command I would like to call a perl script which needs an input directory and an output directory in form of a path. When I put in the path directly it works. The script line looks as follows: system("perl '../path1' '../path2' '../path3&#

[R] System is computationally singular error for plm random effects models

2011-05-26 Thread Stanislav Chankov
Dear all, I am using the plm package for both fixed and random effects models on my country-year panel data. However, for some of the random effects models I get the following error: Error in solve.default(OM) : system is computationally singular: reciprocal condition number = 1.78233e-18 The

Re: [R] system() command in R

2011-04-10 Thread rasanpreet kaur suri
use my brevity. > > Mike Marchywka wrote: >> >> -- >> > Date: Tue, 5 Apr 2011 13:37:12 +0530 >> > From: nandan.a...@gmail.com >> > To: rasanpreet.k...@gmail.com >> > CC: r-help@r-project.org >> > Subject: Re: [R] system() command in R >> >

Re: [R] system() command in R

2011-04-05 Thread Jeff Newmiller
. Please excuse my brevity. Mike Marchywka wrote: _ > Date: Tue, 5 Apr 2011 13:37:12 +0530 > From: nandan.a...@gmail.com > To: > rasanpreet.k...@gmail.com > CC: r-help@r-project.org > Subject: Re: [R] > system() command in R >

Re: [R] system() command in R

2011-04-05 Thread Mike Marchywka
> Date: Tue, 5 Apr 2011 13:37:12 +0530 > From: nandan.a...@gmail.com > To: rasanpreet.k...@gmail.com > CC: r-help@r-project.org > Subject: Re: [R] system() command in R > > On 4 April 2011 16:54, rasanpreet kaur suri wrote

Re: [R] system() command in R

2011-04-05 Thread rasanpreet kaur suri
Hi, The further steps do not get executed because the server keeps waiting. and they are in the same function as the start server. if server started manually then they run normally from the R environment. Is that what you wanted to know? I hope I answered it . On Tue, Apr 5, 2011 at 1

Re: [R] system() command in R

2011-04-05 Thread nandan amar
On 4 April 2011 16:54, rasanpreet kaur suri wrote: > Hi all, > I have a local server insalled on my system and have to start that from > within my R function. > > here is how I start it: > > cmd<-"sh start-server.sh" > > system(cmd, wait=FALSE) > > My function has to start the server and proceed w

[R] system() command in R

2011-04-04 Thread rasanpreet kaur suri
Hi all, I have a local server insalled on my system and have to start that from within my R function. here is how I start it: cmd<-"sh start-server.sh" system(cmd, wait=FALSE) My function has to start the server and proceed with further steps. The server starts but the further steps of the prog

Re: [R] system(..., invisible=FALSE, show.output.on.console=FALSE) in Windows 7

2011-03-14 Thread Ralph Olsson
ieck wrote: From: Gabor Grothendieck Subject: Re: [R] system(..., invisible=FALSE, show.output.on.console=FALSE) in Windows 7 To: "Ralph Olsson" Cc: r-help@r-project.org Date: Friday, 11 March, 2011, 14:58 On Wed, Mar 9, 2011 at 12:14 PM, Ralph Olsson wrote: > Hello, > > I work

Re: [R] system(..., invisible=FALSE, show.output.on.console=FALSE) in Windows 7

2011-03-11 Thread Gabor Grothendieck
On Wed, Mar 9, 2011 at 12:14 PM, Ralph Olsson wrote: > Hello, > > I work for a company in which a number of employees use R. Many of them like > to run executables via the system function in such a way that the output of > that executable is displayed in a separate window. To give an example of

Re: [R] system(..., invisible=FALSE, show.output.on.console=FALSE) in Windows 7

2011-03-11 Thread Ralph Olsson
, Duncan Murdoch wrote: From: Duncan Murdoch Subject: Re: [R] system(..., invisible=FALSE, show.output.on.console=FALSE) in Windows 7 To: "jim holtman" Cc: "Ralph Olsson" , r-help@r-project.org Date: Wednesday, 9 March, 2011, 20:55 On 09/03/2011 2:34 PM, jim holtman wr

Re: [R] system(..., invisible=FALSE, show.output.on.console=FALSE) in Windows 7

2011-03-09 Thread Duncan Murdoch
On 09/03/2011 2:34 PM, jim holtman wrote: I see something similar on my system. Running your command line, I can see the command window flashup and then disappear. We have had issues in the past with setting the input file handle for external commands to an empty stream. Then cmd reads from

Re: [R] system(..., invisible=FALSE, show.output.on.console=FALSE) in Windows 7

2011-03-09 Thread jim holtman
I see something similar on my system. Running your command line, I can see the command window flashup and then disappear. > sessionInfo() R version 2.12.1 (2010-12-16) Platform: i386-pc-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 [

[R] system(..., invisible=FALSE, show.output.on.console=FALSE) in Windows 7

2011-03-09 Thread Ralph Olsson
Hello, I work for a company in which a number of employees use R. Many of them like to run executables via the system function in such a way that the output of that executable is displayed in a separate window. To give an example of the behavior they require, the following command can be run in

  1   2   >