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,

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

[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

[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

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 confused

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

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

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

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

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]

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

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

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

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 -

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

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

2017-04-05 Thread stephen sefick
t "[A/B]\n"; > > 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-

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 Laboratory 7000 Eas

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

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

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

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

[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

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

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

2016-07-20 Thread Berend Hasselman
nto di Sachin Kuruvithadam > <sac...@hotmail.it> > Inviato: mercoledì 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: &

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

2016-07-20 Thread Sachin Kuruvithadam
d� 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.cc K is actually intended to be a number. What I need is a way to find the v

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

2016-07-20 Thread Berend Hasselman
nl> > Inviato: mercoledì 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 <b...@xs4all.nl> wrote: > > > &g

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

2016-07-20 Thread Sachin Kuruvithadam
nviato: mercoled� 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 <b...@xs4all.nl> wrote: > > > > This functions a scalar not a function Correction. This shou

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

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

[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

Re: [R] system() command not working

2016-06-05 Thread J Payne
list. But you can try this: >> >>MRT_DATA_DIR= open -a Rstudio >> >>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. >

Re: [R] system() command not working

2016-06-05 Thread J Payne
see what happens. >It may even be possible to put something in .Rprofile setting your >environment variables. > >Berend Hasselman > >> HTH, >> >> -Roy >> >>> On Jun 4, 2016, at 11:59 AM, J Payne <jcpa...@uw.edu> wrote: >>> >>

Re: [R] system() command not working

2016-06-05 Thread J Payne
>post to that list, because i can’t remember what the work around was for it. > >HTH, > >-Roy > >> On Jun 4, 2016, at 11:59 AM, J Payne <jcpa...@uw.edu> wrote: >> >> I’ve posted this question on StackExchange at >> http://stackoverflow.com/questions/37604

Re: [R] system() command not working

2016-06-05 Thread Berend Hasselman
e <jcpa...@uw.edu> 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 received any replies. I’m hoping that someone who understands >> the operatio

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 <jcpa...@uw.edu> wrote: > > I’ve posted this question on StackExchange at > http://stackoverflow.com/questions/37604466/r-system-not-working-with-modis-reprojection-to

[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

[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

[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 something

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

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 instead command - paste(aa, fnm) system

[R] Declare BASH Array Using R System Function

2013-07-29 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. system(names

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

2013-07-29 Thread Jeff Newmiller
. 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 only be relevant for executing commands. What can

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

2013-07-29 Thread peter dalgaard
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. system(names=(X Y)) sh: Syntax error

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

2013-07-29 Thread Prof Brian Ripley
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 only be relevant for executing commands. What can I do instead

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

2013-07-29 Thread arun
: 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 command line. $ names

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); echo

[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 [Version

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 you

[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)

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-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

[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

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

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

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 la...@purdue.edu 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.

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 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

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 boh...@unm.edu 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 +

[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

[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

[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() 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

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 dwinsem...@comcast.net 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

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 inside

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)]

[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

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 .

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

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 me,

[R] system command and Perl confusion

2012-04-06 Thread Maxim
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 problems! Best wishes Maxim [[alternative HTML version

Re: [R] system command and Perl confusion

2012-04-06 Thread Nathan McIntyre
specifically using the R system command I thought there might be someone around here who came across similar problems! Best wishes Maxim [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

[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

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

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

2011-11-02 Thread John Maindonald
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 email: john.maindon...@anu.edu.au

[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') If I store the path

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 script line

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 Johann Hibschman
syrvn ment...@gmx.net 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, p3))

[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
...@hotmail.com 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 On 4 April 2011 16:54, rasanpreet kaur suri wrote: Hi all, I have

Re: [R] system() command in R

2011-04-05 Thread nandan amar
On 4 April 2011 16:54, rasanpreet kaur suri rasanpreet.k...@gmail.comwrote: 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

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

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: Hi all, I have a local

Re: [R] system() command in R

2011-04-05 Thread Jeff Newmiller
--- Sent from my phone. Please excuse my brevity. Mike Marchywka marchy...@hotmail.com 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

[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

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

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

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

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

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 ralphols...@btinternet.com 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.

[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

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

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

  1   2   >