Displaying 20 results from an estimated 2000 matches similar to: "Porting let* from Common LISP to R"
2004 Feb 03
3
Implementating streams in R
Dear all,
I have an implementation of streams in R. The current implementation of
delay() and force() is
inspired from the LISP implementation found in Part VI "Languages for AI
problem solving" of
"Artificial Intelligence" by G. Luger.
I have tested it with the Fibonacci example in the same book (see examples
below). It works
but I do run into a problem when I try to
2003 Oct 27
1
Difficulties with R.oo (static fields, etc.)
I would like to use R.oo and tcltk to implement a Turtle World. I have
encountered
many problems because:
1) I am not sure how to implement static fields with R.oo
2) I am not sure how to implement a constructor that would
call a function only for the first instance of a class (i.e., to
initialize
value of static fields only once)
3) I am not sure how to remove/delete cleanly existing
2005 May 10
1
Fwd: Re: Implementation of the names attribute of attribute lists
Hi Martin,
Thanks for your reply. I am responding on r-devel to
provide some examples of outputs of the function that
I had list in the post-scriptum of my previous
email (BTW, did my post went through the list? I
subscribed only after mailing it).
You wrote:
>Just to ask the obvious:
>
> Why is using str() not sufficient for you and instead,
> you use 'print.object'
2004 Feb 04
0
Implementing streams in R
Thanks to Prof Brian Ripley, Duncan Murdoch and Luke Tierney for your replies.
In particular, I found Luke Tierney's info very useful. I just would like to
answer Duncan Murdoch's question (what is a stream [Lazy list in Luke's
implementation] in plain english?) in case it interests somebody else.
In fact, I will quote from "Structure and Interpretation of Computer
2003 Oct 14
1
"Turtle world" graphics in R
I would greatly appreciate some idea about the best approach to make a
graphical interface of for a turtle world in R.
In the turtle environment, the user controls movements of a turtle
through the command line (e.g. forward(10), turn(5), etc.). The turtle should
be displayed in the new position and heading after each command.
Also, the turtle's path and, possibly, objects (squares,
2006 Dec 16
2
how to adjust link function in logistic regression to predict the proportion of correct responses in 2AFC task?
I have would like to use logistic regression to analyze the
percentage of correct responses in a 2 alternative forced
choice task. The question is whether one needs to take into
account the fact expected probabilities for the percentage of
correct responses ranges between 0.5 and 1 in this case and
how to adjust the link function accordingly in R (see details below).
Gabriel
Subjects were asked
2003 Oct 15
0
tkcanvas/bitmap for Turtle World
To represent a turtle inside a canvas (tcltk package), I have a serie of
bitmaps
representing the turtle heading in different directions and I would like
to display the one that corresponds to the current direction of the turtle
(function below).
I have created with Paint a bitmap representing the turtle in BMP format
and succeeded displaying it on canvas after converting it into XBM format
2006 Dec 18
1
Applying variable labels across a data frame
Hi All,
I'm working on a class example that demonstrates one way to deal with
factors and their labels. I create a function called myLabeler and apply
it with lapply. It works on the whole data frame when I subscript it as
in lapply( myQFvars[ ,myQFnames ], myLabeler ) but does not work if I
leave the [] subscripts off. I would appreciate it if anyone could tell
me why. The program below
2005 May 10
0
Implementation of the names attribute of attribute lists
Dear all,
Internally, the attribute list appears to be implemented as an generic
list vector with a names attributes (i.e., the attribute slot in the object's
SEXPREC structure would point toward a VECTOR_SEXPREC representing
a generic vector).
> attributes(c(a=1))
$names
[1] "a"
> typeof(attributes(c(a=1)))
[1] "list"
From R, it appears as if the named list had
2013 Nov 02
1
Cent OS 6.3 and free-nx
Folks,
I found free-nx in the repositories and tried to install/use it
I could not figure out how to get it working.
I tried following directions on the wiki
But I still could not get it working
Feel free to contact me at
stephen.bovy at teradata.com
I am currenly using the official ns server on sles 11 sp3
Is their any direction on how to install free nx on sles ??
2015 Apr 01
0
Lispvirt: porting Libvirt API for Common Lisp
Hi everyone!
I'm developing a Libvirt bindings for Common Lisp. The project is called
"Lispvirt".
I created this project because I was doing a project in Lisp to manage
Virtual Machines. So, I needed to implement some code using C and set up
Lisp to access those methods in C. This project was becoming a mess. The
better scenario is using only Lisp. That's why I started to
2005 Oct 05
1
Problems with autoconf example from r-ext.
Dear R-developers,
I am trying to reproduce the autoconf.ac example from R-ext and fail.
My autoconf file looks like this
[autoconf.ac]
# original by Friedrich Leisch, much changed by BDR
AC_INIT([SBMLodeSolveR])
dnl Select an optional include path, from a configure option
dnl or from an environment variable.
AC_ARG_WITH([sbmlode-include],
2009 Dec 02
1
Calling R (GNU R) functions from Common Lisp, how?
Hi Lisp users,
I'm a user of both Common Lisp and R (GNU R).
I found R has a rich collection of statistical and numerical
computation functions, while it is not as extensible as Lisp (Common
Lisp).
I considered Lisp-Stat but its only implementation is not in the
usuall Common Lisp, and the available functions in CRAN are far richer
than Lisp-Stat currently has.
I want to know if there is
2008 May 07
0
Ross Ihaka's reflections on Common Lisp and R
I came across a quite interesting post from Ross Ihaka, thought would be good
to share it and get the opinion of folks around here. I am not sure where to
post this for the R community but since it has to do with development I
thought or R-devel
Ross Ihaka
Newsgroups: comp.lang.lisp
From: Ross Ihaka <ih... at stat.auckland.ac.nz>
Date: Wed, 23 Jan 2008 10:35:26 +1300
Local: Tues, Jan 22
2023 Nov 10
1
Calling Emacs Lisp Code/Function from R
Hi,
I'm using R in Emacs and I'm interested in programatically knowing the
details of all opened buffers; details such a buffer name, size, mode,
and possibly associated filename. I've been able to write such a
function in Emacs Lisp, but now I'd like to be able to call that
function from R, or if that's not possible then calling it from C
would be fine.
Does anyone know if
2023 Nov 10
1
Calling Emacs Lisp Code/Function from R
I'm not an Emacs user, but the ESS-help mailing list (see
ess.r-project.org) might be able to help with this.
Duncan Murdoch
On 10/11/2023 3:43 a.m., Iris Simmons wrote:
> Hi,
>
>
> I'm using R in Emacs and I'm interested in programatically knowing the
> details of all opened buffers; details such a buffer name, size, mode,
> and possibly associated filename.
2008 Jul 23
1
Calling LISP programs in R
I have written some programs in Common Lisp and I have been using SAS to pipe
those programs to my lisp compiler in batch mode by using the %xlog and
%xlst SAS commands. I wonder if there is in R a similar way to pipe commands
to LISP so that all my work would be concentrated in R even when I have to
call a LISP program? I have looked at the foreign library but this seems to
adjust data types not
2007 Sep 06
3
Lisp-like primitives in R
I mainly program in Common Lisp and use R for statistical analysis.
While in R I miss the power and ease of use of Lisp, especially its many
primitives such as find, member, cond, and (perhaps a bridge too far)
loop.
Has anyone created a package that includes R analogs to a subset of Lisp
functions?
Chris Elsaesser, PhD
Principal Scientist, Machine Learning
SPADAC Inc.
7921 Jones
2005 Jan 10
0
[LLVMdev] Fwd: "LLVM: A superior Lisp compiler framework?"
Hi guys,
there was a topic crossposted to comp.lang.scheme and comp.lang.lisp
(started 18 Dec 2004) about usability of LLVM for Scheme and Lisp.
Schemers gave some replies.
sorry for long link:
http://groups.google.de/groups?start=25&hl=de&lr=&group=comp.lang.scheme&selm=pan.2004.12.18.11.29.33.33249%40consulting.net.nz
if link is skewed for you, just use google's group
2023 Nov 10
1
Calling Emacs Lisp Code/Function from R
Hi,
if you run a server in your Emacs session you can use emacsclient to
send a lisp call to the server. There's an example here:
https://emacs.stackexchange.com/questions/54156/how-can-i-query-emacs-from-a-separate-process/54161#54161
Regards,
Martin Gregory
On 11/10/23 11:18, Duncan Murdoch wrote:
> I'm not an Emacs user, but the ESS-help mailing list (see
>