search for: fh2

Displaying 5 results from an estimated 5 matches for "fh2".

Did you mean: fh
2018 Oct 31
1
PATCH: Asserting that 'connection' used has not changed + R_GetConnection2()
SUMMARY: I'm proposing that R assert that 'connection' options have not changed since first created such that R will produce the following error: > fh <- file("a.txt", open = "w+") > cat("hello\n", file = fh) > close(fh) > fh2 <- file("b.txt", open = "w+") > cat("world\n", file = fh2) > cat("hello again\n", file = fh) Error in cat("hello again\n", file = fh) : invalid connection (non-existing 'conn_id') Note that, currently in R, the latter silently w...
2004 Nov 16
0
Re: Win32, file descriptors and rb_io_check_writable()
...iptor opened with File.open vs File.nopen. You >can see this easily enough by doing something like this: > >fh1 = File.open("test1.txt","w+") >fh1.print "hello\nworld\n" >fh1.close > >Open this up with notepad - looks fine. Now try this: > >fh2 = File.nopen("test2.txt",nil,nil,File::OPEN_ALWAYS) >fh2.print "hello\nworld\n" >fh2.close > >Opened with notepad, you''ll see that the line endings aren''t the same >(although wordpad handles them properly). I guess I should find an >octal dum...
2007 Oct 09
5
Playing with ReadFileScatter()
Hi all, Looking at the IO.readlines source in io.c, it looks to me like they grab 8k chunks, split on the input record separator, and buffer accordingly. Since it looks like ReadFileScatter() does some of that work automatically (in page file sized chunks), I thought I''d give it a try. Here''s what I''ve got, but it doesn''t work. I have an incorrect parameter
2017 Mar 07
0
Potential clue for Bug 16975 - lme fixed sigma - inconsistent REML estimation
...0.1332918 1 # # Variance function: # Structure: fixed weights # Formula: ~var # Number of Observations: 43 # Number of Groups: 43 #Fay-Herriot model fitted using the variance function varSum defined above #A columns of zeros is added to tweak the varConstPower component milk$zero<-0 FH2<-gls(yi ~ as.factor(MajorArea),data=milk, weights=varSum(varConstPower(1,1,~zero,fixed=list(power=1)),varFixed(~var)), control=lmeControl(sigma = 1)) FH2 # Generalized least squares fit by REML # Model: yi ~ as.factor(MajorArea) # Data: milk # Log-restricted-likelihood: 5.165619 # # Coeffici...
2008 Aug 09
2
xy plot in version 2.7.1 for Mac (PR#12520)
...HYEw bsRwI01EloylOWzO7cFgTqrbWzRmDP6jRyE9FPN1Y0TupKYoihl/2fxNEU/PeXLnxd07vv+Dh1lf 8j9+f/KLiU+/9ESDc8+e8pLm/nVHPrh10Y8f7kw+/vbf99Q/e/CpzU3iy0AcKZL12P6PHrlpbmLJ 55ZsCxRERw63FF2lJfp5nDr9kGMMf2FAPXPpwFSqtNE/XxgYaRt/1SKs4icpUMkdVAdAPtIY3JXk Gl4SKnPcBJiAbXgrvwnZGo/7DwmyaDkp2paC72mqmDzp5smTfeW3L2haPKXW8ICTfh2+877rJ0GZ TKldtYnlg6V0ugjQARK5gAsA0wBzAVsBuwAKJUY1S0HXAw4BLgEU8kvp3Q+M9IdBthikZ+HiQkNs iogNcwyx5+ZghE6ZEaFVkyJu4yNuI0ZF1MMqIvS6vAhNyikMofGe2PjC/vI0KY1OADi1AzN+hBIZ wxfKY1IqaQCOgEY0fimpZ4i3cNchSSYmcYSzhVx6v8S64+2F5bFc5xcRQxf/hF+IWPiFngR74a7y G/n79ALgEEDi76O8x9+j9fwsAm4DLgPsAhwCHAdcBCj8LMoZlHf5u5TI/0I...