search for: tilde

Displaying 20 results from an estimated 563 matches for "tilde".

2009 Oct 14
1
using mapply to avoid loops
...p (and it works fine), and the second set of code attempts to use mapply but I get a "subscript out of bounds" error. Any guidance would be greatly appreciated. Xj, Yj, and Wj are also lists, and s2, TAU, and GAMMA are scalars.   Thank You.   # THIS WORKS USING THE LOOP for (j in 1:J) { V.tilde.j <- solve((1/s2)*t(Xj[[j]])%*%Xj[[j]] + solve(TAU)) # Not singular case: if(round(det(t(Xj[[j]])%*%Xj[[j]]),8)!=0) {  Beta.hat.j <- solve(t(Xj[[j]])%*%Xj[[j]])%*%t(Xj[[j]])%*%Yj[[j]]  V.j <- s2*solve(t(Xj[[j]])%*%Xj[[j]])  Lambda.j <- solve(solve(V.j) + solve(TAU))%*%solve(V.j)  Beta.t...
2019 Jun 14
1
[R] Open a file which name contains a tilde
Hi John, First, the unix and linux filesystem allows the use of any nonzero character in its filesystem filenames and the c functions open / fopen, symlink. rename, chdir and so on don't care about any tilde. If the open systemcall gets a file which begins with a tilde then it will try to open this filename without any preceding modification. So the tilde expansion is not really a unix idiom. It is rather an idiom of its unix shells like bash. But beware, the bash treats the tilde as home path not in...
2008 May 30
2
Including a tilde in a plotmath-type call
...I'd prefer to be able to do it more directly and simply the way these do: text(5, 1, expression(X %~~% N(mu, sigma^2)), adj = 0) text(5, 2, expression(X %prop% N(mu, sigma^2)), adj = 0) text(5, 3, expression(X %=~% N(mu, sigma^2)), adj = 0) They're easy, but they don't give a single tilde. I know how to put a tilde(X) or even a wide tilde, but there're not it either. What did I miss? --
2019 Jun 07
2
[R] Open a file which name contains a tilde
> On Jun 6, 2019, at 2:04 PM, Richard O'Keefe <raoknz at gmail.com> wrote: > > How can expanding tildes anywhere but the beginning of a file name NOT be > considered a bug? > > I think that that IS what libreadline is doing if one allows a whitespace separated list of file names. As reported in R-help, https://www.mail-archive.com/r-help at r-project.org/msg254116.html path.expand s...
2014 Mar 28
3
Tilde
Buenas para todos, tengo instalado r studio en windows y mi compilador de latex es winedit. En rstudio para Rnw no me acepta la tilde directamente solo con /' como hacer que acpte la tilde en Rnw siendo q en text acpeta sin problemas? [[alternative HTML version deleted]]
2019 Jun 13
2
[R] Open a file which name contains a tilde
On Wed, Jun 12, 2019, 5:16 AM Paul McQuesten <mcquesten at gmail.com> wrote: > @ Gabriel: > > "Avoid tilde in file names": > Not quite. > A tilde *suffix* is commonly used by *nix editors for backup files > > https://unix.stackexchange.com/questions/76189/what-does-the-tilde-mean-at-the-end-of-a-filename I'm aware of that, but that isn't the case that is being discussed, as th...
2006 Apr 13
1
xmkmf? problem
...g for xmkmf... /usr/X11R6/bin/xmkmf Usage: which [options] [--] programname [...] Options: --version, -[vV] Print version and exit successfully. --help, Print this help and exit successfully. --skip-dot Skip directories in PATH that start with a dot. --skip-tilde Skip directories in PATH that start with a tilde. --show-dot Don't expand a dot to current directory in output. --show-tilde Output a tilde for HOME directory for non-root. --tty-only Stop processing options on the right if not on tty. --...
2019 Jun 08
0
[R] Open a file which name contains a tilde
Hello, R 3.6.0 on Ubuntu 19.04. Since no one mentioned it, notice that the tilde in the middle of a string needs to be surrounded by spaces to be expanded. The first code line works as expected, only the second is wrong (buggy). path.expand('a~b') #[1] "a~b" path.expand('a ~ b') #[1] "a /home/rui b" Rui Barradas ?s 04:27 de 08/06/19, Ri...
2019 Jun 08
0
[R] Open a file which name contains a tilde
?path.expand Expand a path name, for example by replacing a leading tilde by the user's home directory (if defined on that platform). *A* path name. The argument is a character vector. If multiple path names are passed, they are passed On most builds of R *A LEADING* "~user" will be replaced... Nothing is said in the R documentation about *multi...
2019 Jun 12
2
[R] Open a file which name contains a tilde
>>>>> Duncan Murdoch writes: With c76695 in the trunk, we now only tilde expand file names starting with a tilde also when using readline. Best -k > On 11/06/2019 4:34 p.m., William Dunlap via R-devel wrote: >> Note that R treats tildes in file names differently on Windows and Linux. >> On Windows, it is only replaced if it it at the beginning of the li...
2019 Jun 13
0
[R] Open a file which name contains a tilde
...n this thread prior to but I read after Paul's). ~G On Wed, Jun 12, 2019 at 11:51 PM Gabriel Becker <gabembecker at gmail.com> wrote: > > > On Wed, Jun 12, 2019, 5:16 AM Paul McQuesten <mcquesten at gmail.com> wrote: > >> @ Gabriel: >> >> "Avoid tilde in file names": >> Not quite. >> A tilde *suffix* is commonly used by *nix editors for backup files >> >> https://unix.stackexchange.com/questions/76189/what-does-the-tilde-mean-at-the-end-of-a-filename > > > I'm aware of that, but that isn't the case t...
2019 Jun 05
6
Open a file which name contains a tilde
Hi, As I can see via path.expand a filename which contains a tilde anywhere gets automatically crippled. +> path.expand("a ~ b") [1] "a /home/user b" +> path.expand("a ~ b ~") [1] "a /home/user b /home/user" I want to open a file regardless whether its name contains any character unless 0. The unix filesystem allow...
2019 Jun 05
6
Open a file which name contains a tilde
Hi, As I can see via path.expand a filename which contains a tilde anywhere gets automatically crippled. +> path.expand("a ~ b") [1] "a /home/user b" +> path.expand("a ~ b ~") [1] "a /home/user b /home/user" I want to open a file regardless whether its name contains any character unless 0. The unix filesystem allow...
2019 Jun 12
0
[R] Open a file which name contains a tilde
@ Gabriel: "Avoid tilde in file names": Not quite. A tilde *suffix* is commonly used by *nix editors for backup files https://unix.stackexchange.com/questions/76189/what-does-the-tilde-mean-at-the-end-of-a-filename On Wed, Jun 12, 2019 at 2:43 AM Kurt Hornik <Kurt.Hornik at wu.ac.at> wrote: > >>>&...
2012 Jan 05
2
CentOS6 and tilde expansion
Set up NIS and autofs on this new CentOS6 box, but it seems tilde expansion no longer works in bash? [root at frodo ~]# cd ~john -bash: cd: ~john: No such file or directory [root at frodo ~]# cd /home/john [root at frodo john]# pwd /home/john [root at frodo john]# It still works in t/csh: [root at frodo ~]# /bin/csh [root at frodo ~]# cd ~john [root at frodo ~...
2019 Jun 11
3
[R] Open a file which name contains a tilde
Hi Frank, I'm hesitant to be "that guy", but in case no one else has brought this up to you, having files with a tilde in their names (generally but especially on a linux system, where ~ in file names has a very important special meaning in some cases, as we know) strikes me as an exceptionally bad practice anyway. In light of that, the solution with the smallest amount of pain for you is almost surely to just... n...
2009 Oct 19
4
[OT] LaTeX peculiarities in Ubuntu 9.10 beta
I am running the beta test version of Ubuntu 9.10, x86_64 on a machine and encountered some peculiarities in LaTeX called through R-devel CMD texi2pdf file.tex The tilde character in the input, which should produce a non-breaking space, is now being rendered as a tilde. Does anyone know where I could begin exploring for explanations and/or workarounds?
2017 Jun 27
2
paste strings in C
...in C, for very large matrices: > (mymat <- matrix(c(1,0,0,2,2,1), nrow = 2)) [,1] [,2] [,3] [1,] 1 0 2 [2,] 0 2 1 And I would like to produce: [1] "a*C" "B*c" Which can be trivially done in R via something like: foo <- function(mymat, colnms, tilde = FALSE) { apply(mymat, 1, function(x) { if (tilde) { colnms[x == 1] <- paste0("~", colnms[x == 1]) } else { colnms[x == 1] <- tolower(colnms[x == 1]) } paste(colnms[x > 0], collapse = "*") }) } > foo(m...
2019 Jun 11
2
[R] Open a file which name contains a tilde
Note that R treats tildes in file names differently on Windows and Linux. On Windows, it is only replaced if it it at the beginning of the line and is followed by a forward or backward slash or end-of-line. On Linux it is replaced no matter where it is in the text and ~someUser will be replaced by someUser's home dire...
2011 Nov 18
2
Are tildes actually valid in templates or is this a bug?
Hi all, First off, we''re running Puppet 2.7.6 with Ruby 1.8.7 on CentOS 6.0. Now, I''m using tildes in a template to prevent newlines from appearing but ruby/puppet is choking on them. */tmp/puppet$ cat test.erb* Line 1: Line 2 will exist if running on CentOS. <% if operatingsystem == "CentOS" ~%> Line 2: Yay, we''re running CentOS. <% end ~%> */tmp/puppet$ erb -x...