Displaying 20 results from an estimated 8000 matches similar to: "Summary on graceful exit from fortran."
2001 Oct 01
1
Graceful exit from fortran.
Is there a way to exit gracefully from dynamically loaded Fortran,
(several layers down), if an error condition is detected?
I.e. suppose I'm within a subroutine called by a subroutine, ...,
called by .Fortran(); I want to give up gracefully if an error
condition is detected.
If I say something like
if(x .gt. 42.d0) stop
then indeed everything stops, i.e. R falls over. I'd
2001 Oct 02
1
Graceful exit from fortran. (fwd)
rolf at math.unb.ca said:
> If I say something like
> if(x .gt. 42.d0) stop
> then indeed everything stops, i.e. R falls over. I'd ***like*** to be
> able to print out an informative error message (which I guess could be
> done -
In Fortran:
subroutine foo(..., ier)
integer ier
ier=0
...
if (x .gt. 42.d0) then
ier=1
return
endif
2005 Jun 06
1
Missing values in argument of .Fortran.
I wish to pass a vector ``y'', some of whose entries are NAs to a
fortran subroutine which I am dynamically loading and calling by
means of .Fortran(). The subroutine runs through the vector entry by
entry; obviously I want to have it do one thing if y[i] is present
and a different thing if it is missing.
The way I am thinking of proceeding is along the xlines of:
ymiss <- is.na(y)
2003 Feb 03
0
(Off topic.) Game theory.
This has nothing to do with R as such; I'm simply trying to exploit
the vast resource of knowledge and expertise that resides in the R
community.
For my sins, I am teaching a course on Game Theory this term. Game
Theory I know from ***nothing***. I am trying to learn the subject
as I go along, staying perhaps half a step in front of the students.
I am having considerable difficulty with
2005 Nov 15
1
An optim() mystery.
I have a Master's student working on a project which involves
estimating parameters of a certain model via maximum likelihood,
with the maximization being done via optim().
A phenomenon has occurred which I am at a loss to explain.
If we use certain pairs of starting values for optim(), it
simply returns those values as the ``optimal'' values, although
they are definitely not
2006 Aug 31
0
Summary and thanks: .Rprofile under Windoze.
Many thanks to all who responded to my cri de coeur: Charles Annis,
John Bollinger, Petr Pikal, Brian Ripley, Duncan Murdoch, Dan
Nordlund, and Richard Heiberger. (I don't think --- I hope --- I
haven't missed anyone.)
The essential solution to my problem was indeed to eliminate that
@#@$#@$^#@ ``.txt'' extension from the filename. I.e. the file must
be called
2001 Nov 02
1
Summary --- testing for existence of file.
Many thanks to those who answered my question about how to test
for the existence of a file: Berwin Turlach, Jari Oksanen, Henrik
Bengtsson, Uwe Ligges, and Joerg Maeder.
The simplest solution is to use the built-in (!!!) function
file.exists() which returns TRUE if the file exists, and FALSE
if it doesn't. Like, duhhhhhh!!! It's exactly what I wanted.
Special thanks to Berwin Turlach
2006 Sep 01
1
Summary --- Local library under Windoze.
Prof. Brian Ripley solved the problem. He wrote:
> I was not aware that this works with relative paths for any version
> of R. Try using a full path, which always works for me.
I tried it using a full path, and bingo! It worked
like a charm.
Under Unix the relative path also works, but.
Prof. Ripley also remarked:
> If indeed your filesystem is readonly, you will have problems
2001 Nov 24
1
Are you experienced in SAS ...
I'd just like to put in my two bob's worth:
The ***only*** thing for which I prefer SAS to R/Splus, but it's
a very important thing, is the analysis of mixed linear models.
One can do the same analyses in both languages. The difference is
that the SAS syntax for specifying such a model, and its output, is
comprehensible to the human mind, which is what I'm equipped with.
The
2003 Sep 17
0
FW: opiekey segfault ... isn't that harmfull? it's setuid root
Hi,
I dunno much about exploiting, but I was wondering about the setuid root
program 'opiepasswd' to use one-time-passwords.
When having a seed of (null) and a sequence of -1, I get a segfault.
Kernel/base:
FreeBSD lama.inet-solutions.be 4.8-RELEASE-p4 FreeBSD 4.8-RELEASE-p4 #0:
Sun Aug 31 21:00:38 CEST 2003
root@lama.inet-solutions.be:/usr/obj/usr/src/sys/LAMA i386
Make.conf:
2001 Sep 14
1
Dynamic loading problem.
I'm having a dynamic loading problem that seems to be
caused by exponentiation (the ** operator in Fortran/ratfor).
This can be illustrated by the following toy example:
===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===
% cat foo.r
subroutine foo(x,n)
x = x**n
return
end
% f77 -c foo.r
/tmp/ratfor.06661.0.f:
foo:
% R CMD SHLIB -o foo.so foo.o
gcc -G -o
2008 Mar 19
4
R GUI question
Hi.
I'm looking to create a user-friendly program built around some R methods
I've written. The program should be as easy to install and use as possible
and will be built around a GUI. This program will be cross-platform; that's
crucial.
I'm familiar with Java and its GUI packages, I've been looking at the JRI
package (interfaces R with Java) but I'm a little uneasy about
2011 Aug 09
1
simple plot question
Hi,
please excuse the most likely very trivial question, but I'm having no idea
where to find related information:
I try to recapitulate very simple plotting behavior of Excel within R but
have no clue how to get where I want.
I have tab delimited data like
cell treatment value
line a treat1 4
line a treat2 3
line b treat1 8
line b treat2 11
I'd like to have a plot (barplot), that
2010 Aug 17
11
EVERYONE USING DOVECOT PLEASE SIGN: Thanks, Administrators of Dovecot!
With the release of dovecot 2.0, the community of the Dovecot mailling
list, and us at Shelton Computers, would sincerely like to thank the
developers of Dovecot. For, if it were not for you, we would be stuck
with Courier and would not have the impressive features of Sieve, as
opposed to the unmanageable scripts, by end users, of maildrop.
*Our gratitude goes to, but not limited to:*
*Timo
2009 May 26
3
Still can't find missing data
I'm trying to prepare some cross tabs, looking at a number of variables against a variable "connector" which has 2 values: "OD Passenger" and " Connector".
When I produce a xtabs one way I have observations under "Connector" but against a different variable "Connector" shows all 0 values.
What is wrong? I've looked into the na commands
2006 Jul 13
1
From the Agile book, page 144 regarding a div tag helper
Hi. in the Rails Agile book here''s what was happening:
>>>
module StoreHelper
def hidden_div_if(condition, attributes = {})
if condition
attributes["style" ] = "display: none"
end
attrs = tag_options(attributes.stringify_keys)
"<div #{attrs}>"
end
# format_price method ...
end
Note that we cheated slightly here. We copied code from the Rails
2005 Sep 03
1
Whole lotta stuff
1) Please ignore the patch for wxMouseEvent.h. Including this causes
the build to fail.
2) Attached are several files to patch some things to get the bigdemo
working (better):
Added a generic typemap for converting ruby arrays into point arrays.
Added a typedef for wxDash
Corrected/expanded the typemap for GetTextExtent
Added GetMultiLineTextExtent prototype (there are some others missing I
2005 Apr 23
0
reading fortran binary file
Hi r-help,
I have some troubles reading fortran binary file(from mm5) in R. Here
is what I have done.
1. Use a fortran subroutine to read this file in R. The subroutine is
as the following.
subroutine freadmm5(filenamet,out2d)
integer iflag,var1,miy,mjx,mkz,mt,z,t
character*4 crdt,corder
character*24 chrdate
character*9 cname,var
character*25
2008 May 29
1
Problem with .C()
I've been trying to get my head around using matrices in calls to .C().
As an exercise I wrote some code to calculate the product of two
matrices.
(Well, it makes it easy to check if one is getting the right answer!)
After obtaining some advice from a Certain Very Wise Person at Oxford,
(to find out how to deal with array indexing in C functions called from
elsewhere) I wrote the following
2016 Mar 04
0
ALLOCATE in a FORTRAN subroutine
Hi,
Until you get a more definitive answer, I will make an attempt to give some advice.
When using an assumed sized array (i.e. REAL*8 array1(*)) you still need to allocate the memory prior to calling the Fortran subroutine, so you would still need to know its maximum length.
Arrays created in a Fortran subroutine via the use of the ALLOCATE statements are not simple arrays (in the sense of C