similar to: Suggested modification to shell command

Displaying 20 results from an estimated 3000 matches similar to: "Suggested modification to shell command"

2002 Sep 09
1
No reorder.factor in R
I was using R 1.5.1 today with an old script from S-Plus and discovered that R does not have reorder.factor. It's a very simple function, but very handy for re-arranging factors in lattice graphics (among other places). Would it make sense to add this function to the base code in order to increase compatability with S-Plus and add additional functionality? reorder.factor <-
2002 Oct 01
0
Possible inconsistency with mean & var
I encountered an unexpected difference in the way that mean and var work: > mean(numeric(0)) [1] NaN > var(numeric(0)) Error in var(numeric(0)) : `x' is empty Looking into this, I discovered in mean.default that sum(x)/n evaluates as > sum(numeric(0))/length(numeric(0)) [1] NaN The function var calls an .Internal and seems to evaluate this: >
2002 Nov 21
4
Mixing text and graphics in PDF
Is there an easy way to "sink" text output to a pdf file using the pdf() device? Here's an email that describes setting up empty graphics plots and then using the "text" command to put text on page: http://www.r-project.org/nocvs/mail/r-help/2002/5598.html I'm just looking for something a little more polished -- automatic page breaks, line wrapping, etc. Kevin
2010 Jun 09
2
Question on trying to build R 2.11.1 on Tru64(aka OSF1)
First I tried 'setenv R_SHELL /usr/local/bin/bash', as bash is the weapon of choice for the faculty wishing to use R, then ran ./configure as before. The ./configure output line using as R_SHELL for scripts ... /usr/local/bin/bash would seem to indicate that the R_SHELL environment variable was recognized and acknowledged. However, I got the same build error: gnumake[2]: Entering
2009 Jul 16
2
Renviron.in error when compiling R 2.9.1 under Debian.
Dear all, I'm trying to compile R 2.9.1 on my home directory under debian, and as I need to play with RPy, I tryed compile R using: ./configure --enable-R-shlib But, during the compilation, I get the error below: ------------------------------------- using as R_SHELL for scripts ... /bin/sh configure: creating ./config.status config.status: creating Makeconf config.status: creating Makefile
2010 Feb 19
1
[PATCH/cygwin] reduce number of propagated environment variables
Hi, could somebody apply the below patch, please? It removes a couple of environment variables which are propagated to the child process so far, but which not really necessary to keep child processes running. What's left now is the bare minimum which is requested by scripts, typically. Thanks, Corinna Index: openbsd-compat/bsd-cygwin_util.c
2015 Apr 24
2
Real sh? Or other efficient shell for non-interactive scripts
On Fri, April 24, 2015 12:04 pm, John R Pierce wrote: > On 4/24/2015 9:47 AM, Gordon Messmer wrote: >> On 04/24/2015 03:57 AM, Pete Geenhuizen wrote: >>> if you leave it out the script will run in whatever environment it >>> currently is in. >> >> I'm reasonably certain that a script with no shebang will run with >> /bin/sh. I interpret your
2013 Jul 19
1
copiar directorio en r
Muchas gracias Miguel. Os pongo mi soluciĆ³n por si alguien necesita llamar a distintos tipos de sistema. setwd("C:/Users/usuario/Desktop/Pruebas/") x <- sessionInfo() sistema <- substr(x$R.version$system,1, 3 ) origen <- "Carp" destino <- "Carp235" switch(sistema, x86 = system(paste(Sys.getenv("COMSPEC"),"/c
2010 Sep 07
5
R 2.11, shell, spaces
Can somebody confirm some unexpected behavior? This is under Windows, with R 2.11.0 and 2.11.1. 1. Create a trivial test file (I called it test.R) containing: cat("Success.\n") 2. Load R (Gui or Term) and run: shell("\"C:\\path\\to\\Rscript.exe\" \"C:\\path\\to\\test.R\"") In my case, I get various error messages. If the path\\to\\Rscript.exe has spaces
2008 Dec 17
1
using dvi with latex object: directory not correctly set, maybe due to error in shQuote()
Dear friends of R, I want to produce a pdf file with the contents of a matrix. I employ the latex command in combination with dvi, both contained in the Hmisc package. It seems to me that the function does not correctly set the directory. > tbl.loc <- matrix(1:4, nc=2) > latex.obj <- latex(tbl.loc) > dvi(latex.obj) warning: extra args ignored after 'cd' H:\PROJECTS\data
2010 May 22
1
calling Perl script from R on Windows 7
Hi list, I would like to capture the console output of a Perl script by running the script from R. I have tried the following: # Create perl script cat( 'print "Hello World\n";',file="hello.pl" ) # Trial 1 system(command="c:\\Perl64\\bin\\perl hello.pl") -I saw no output for the above command. I have used this method before to run perl scripts that
2007 Mar 19
1
"Module not found"
I'm trying to run a program called GSAK (Geocaching Swiss Army Knife) under Wine. Most of it runs, however, as part of its normal operation it creates a batch file, BABEL.BAT, to communicate with a GPS using GPSBabel. I've run GPSBabel by itself under wine and it works. I've run the batchfile by hand and *THAT* works (under wcmd). However, I've since discovered that when GSAK
2007 Mar 23
1
login shell not found "bug"
Hello folks at OpenSSH, I recently encountered a behavior of your software (it doesn't really deserve the name of "bug") that may be so rare that it is not worth correcting--however, if it was corrected, it would have saved me many hours of anguish. I recently set up a new PC with Ubuntu 6.10 and connected to my office NIS domain. Unfortunately, when I tried to log in via SSH with
2004 Dec 18
0
Removing COMSPEC from win32-open3
Hi all, Aslak brought up a good point with regards to returning the pid for a popen4() method. As it stands now, it returns the pid of the shell rather than the pid of the process itself. However, my attempts to remove the COMSPEC stuff result in CreateProcess() failing with an error code of 2, i.e. "the system cannot find the file specified" - not too helpful. This is when I tried
2017 Dec 15
3
GUI/X11 login and shells other than bash?
Dear Experts, After one of updates that was released some time ago (a Month ago or maybe even earlier) I have noticed the following. On the machines with default runlevel 5 (sorry about old terminology, the new one is still confusing for me ;-) GUI/X11 login (display manager) lists only users whose default shell is bash. Or, at least users whose default shell is tcsh are not listed at all, and if
2017 Dec 15
1
GUI/X11 login and shells other than bash?
On Fri, December 15, 2017 2:34 pm, Stephen John Smoogen wrote: > On 15 December 2017 at 13:24, Valeri Galtsev <galtsev at kicp.uchicago.edu> > wrote: >> Dear Experts, >> >> After one of updates that was released some time ago (a Month ago or >> maybe >> even earlier) I have noticed the following. On the machines with default >> runlevel 5 (sorry
2002 Dec 23
2
Inheriting environment - sshd server to shell child
The sshd server normally builds the environment variables from scratch for a shell process it creates. Except when compile for Cygwin, it simply adds settings to its own set of environment variable settings. A comment in the code says this special case is made because in Cygwin, some of sshd's environment is important for child processes too. I don't run Cygwin (I run Linux), but on my
2015 Apr 24
9
Real sh? Or other efficient shell for non-interactive scripts
On 04/24/2015 03:57 AM, Pete Geenhuizen wrote: > if you leave it out the script will run in whatever environment it > currently is in. I'm reasonably certain that a script with no shebang will run with /bin/sh. I interpret your statement to mean that if a user is using ksh and enters the path to such a script, it would also run in ksh. That would only be true if you
2015 Dec 04
2
template shell RFC2307 loginShell
We use power broker here at work and where wondering why we need it. I was able to setup a new linux server using samba and am able to login with my active directory accounts but I couldn't figure out how to set the login shells. I have a work around but would like feedback in my /etc/samba/smb.conf I have the following security = ads realm = DOMAIN.LONG workgroup = DOMAIN idmap
2011 Nov 03
1
winbind auth, specifying shell
Hey folks, I'm using winbind authentication against MS Active Directory, and it's working great. Because of template shell = /bin/bash in smb.conf, new users are getting assigned the bash shell, which is great in most cases. Some users, however, prefer a different shell (tcsh). How can I specify, on a user by user basis, the preferred shell? I'm guessing this is an attribute in