Displaying 20 results from an estimated 130 matches similar to: "Rcpp 0.7.0: R/C++ integration now even easier"
2012 Jun 16
0
R CMD -lgsl -lgslcblas *.c returns a fatal error: gsl/gsl_rng.h no such file or directory exists
Hello,
I tried this posted on the R devel subforum but no help so far. Maybe the
wider net will be fruitful. Probably a pretty simple issue.
The short story goes, I'm writing C source code and compiling it in as *.dll
in the windows terminal by R CMD SHLIB foo.c. It works, I'm on a 64-bit
system. I have the lastest R 2.15.0 and Rtools, and I am using the gcc 4.6.3
compiler.
However,
2012 Jun 09
0
-lgsl -lgslcblas fatal error no such file or directory
Hello,
Novice programmer.
I'm writing C source code and compiling it in as *.dll in the terminal by R
CMD SHLIB foo.c. It works, I'm on a 64 bits windows system. I have the
lastest R 2.15.0 and Rtools using the gcc 4.6.3 compiler.
However, that was a hello world run, and I installed GSL for the 64 bit
system for fast MCMC. The Rcpp package was easy to use, but I opted for a C
with GSL
2007 Oct 05
1
Sklyar's inline package: how to return a list?
Hi,
Below I have a mickey-mouse example using Oleg Sklyar's wonderful inline package.
The question I have is, how do I return multiple values, say in a list?
Inside the C code, I've also calculated 'sum'. How do I return this along with 'res'?
Ultimately, I want to return multiple matrix results. Thanks in advance for any code snipplets/advice!
Regards,
Ken
#
2006 Dec 02
2
nonlinear quantile regression
Hello, I?m with a problem in using nonlinear quantile regression, the
function nlrq.
I want to do a quantile regression o nonlinear function in the form
a*log(x)-b, the coefficients ?a? and ?b? is my objective. I try to use the
command:
funx <- function(x,a,b){
res <- a*log(x)-b
res
}
Dat.nlrq <- nlrq(y ~ funx(x, a, b), data=Dat, tau=0.25, trace=TRUE)
But a can?t solve de problem,
2007 Dec 10
2
bug in by.data.frame, R-2.6.1 (PR#10506)
by() fails for 1-column matrices and dataframes:
X <- data.frame(a=1:10)
g <- gl(2,5)
by(X, g, colMeans)
Suggested fix:
--- by-old.R 2007-12-10 15:26:22.501086600 +0100
+++ by.R 2007-12-10 15:25:58.390477200 +0100
@@ -26,7 +26,7 @@
IND[[1]] <- INDICES
names(IND) <- deparse(substitute(INDICES))[1]
} else IND <- INDICES
- FUNx <-
2000 Apr 28
0
using by() in a function
I have a fix to by.data.frame() that works for my example. Can anyone see a
problem with this?
The old code has:
> get("by.data.frame",3)
function (data, INDICES, FUN, ...)
{
### code skipped to save space
ans <- eval(substitute(tapply(1:nrow(data), IND, FUNx)), ### The problem
seems to be here
data)
attr(ans, "call") <- match.call()
class(ans)
2007 May 22
2
inline C/C++ in R: question and suggestion
This is a question and maybe an announcement.
We've been discussing in the group that it would be nice to have a
mechanism for something like "inline" C/C++ function calls in R. I do
not want to reinvent the wheel, therefore, if something like that
already exists, please give me a hint -- I could not find anything. If
not, here is a working solution, please criticise so I could
2010 Sep 13
2
value returned by by()
Hi,
I noticed that by() returns an object of class 'by', regardless of what
its argument 'simplify' is. ?by says that it always returns a list if
simplify=FALSE, yet by.data.frame shows:
---<--------------------cut here---------------start------------------->---
function (data, INDICES, FUN, ..., simplify = TRUE)
{
if (!is.list(INDICES)) {
IND <-
2008 Apr 15
1
by inconsistently strips class - with fix
summary:
The function 'by' inconsistently strips class from the data to which
it is applied.
quick reason:
tapply strips class when simplify is set to TRUE (the default) due to
the class stripping behaviour of unlist.
quick answer:
This can be fixed by invoking tapply with simplify=FALSE, or changing
tapply to use do.call(c instead of unlist
executable example:
2003 Jan 08
2
Undocumented bahavior of as.integer() (PR#2430)
as.integer() truncates doubles toward zero, as Splus does (at least v. 6.1
under Windows does). Thus:
> look <- (10 * seq(14)) - 76
> 10 * (73.1 + look)
[1] 71 171 271 371 491 586 681 791 886 981 1101 1201 1301 1401
> as.integer(10 * (73.1 + look))
[1] 70 170 270 370 490 586 681 791 886 981 1101 1201 1301 1401
... It is not documented in R! I propose appending
2007 Mar 28
4
Rmpi and OpenMPI ?
Has anybody tried to use Rmpi with the OpenMPI library instead of LAM/MPI?
LAM appears to be somewhat hardcoded in the Rmpi setup. Before I start to
experiment with changing this, has anybody else tried Rmpi with non-LAM MPI
implementations?
Dirk
--
Hell, there are no rules here - we're trying to accomplish something.
-- Thomas A. Edison
2011 Mar 07
1
Rmpi fails to install
I try to install Rmpi as root with install.packages("Rmpi").
It fails with:
...
checking for x86_64-pc-linux-gnu-gcc -std=gnu99 option to accept ISO
C89... none needed
I am here /usr and it is OpenMPI
Trying to find mpi.h ...
Found in /usr/include
Trying to find libmpi.so or libmpich.a ...
Found libmpi in /usr/lib
checking for openpty in -lutil... yes
checking for main in -lpthread...
2006 Nov 08
0
running 0.6.4 and 0.7.0 side-by-side
For those trying to move projects to 0.7.0, but still using 0.6.4,
RubyGems supports this arcane syntax for the bin stubs that allow you
to specify a gem version:
spec _0.6.4_ /path/to/your/specs
And for the ruby on rails plugin, you can make "rake spec" work by
add the following two lines to the top of tasks/rspec.rake file:
require ''rubygems''
require_gem
2008 Jan 15
0
mechanize 0.7.0 Released
mechanize version 0.7.0 has been released!
* <http://mechanize.rubyforge.org/>
The Mechanize library is used for automating interaction with websites.
Mechanize automatically stores and sends cookies, follows redirects,
can follow links, and submit forms. Form fields can be populated and
submitted. Mechanize also keeps track of the sites that you have
visited as a history.
Changes:
#
2008 Mar 19
0
[ANNOUNCE] xf86-video-ark 0.7.0
Adam Jackson (2):
Death to RCS tags.
ark 0.7.0
Brice Goglin (1):
Define VERSION* using PACKAGE_VERSION*
Dave Airlie (1):
ark: add basic pciaccess support
James Cloos (2):
Rename .cvsignore to .gitignore
Add *~ to .gitignore to skip patch/emacs droppings
git tag: xf86-video-ark-0.7.0
2006 Jan 29
0
Rake 0.7.0 breaks "rake engine_migrate"?
Hi,
Everything was working fine. Then I upgraded Rake to 0.7.0.
Now, when I do a "rake engine_migrate", I get:
~/Projects/cisv/trunk joevandyk$ rake engine_migrate
(in /Users/joevandyk/Projects/cisv/trunk)
The db/migrate directory for engine ''login_engine'' appears to be missing.
Should be:
2008 Feb 08
1
compiz-0.7.0-5.1 - Killed compiz-emerald-0.6.9_git071204-1.4
Listmates,
openSuSE 10.3
ati mobility radeon 9700
ati-fglrxG01-kmp-default-8.45.4_2.6.22.16_0.1-0.2
xorg: http://www.3111skyline.com/download/radeon3D/xorg.conf.no.emerald
With the update to compiz 0.7.0-5.1, compiz-emerald and emerald-themes
completely stopped working. Compiz will start and you can choose kde
window decorations, but I cannot get emerald to work not matter what.
Not from
2010 Mar 16
0
migrate with libirt 0.7.0
Using ubuntu 9.10 and libvir 0.7.0, when I do a migrate a domain from
machine A to B, the migration "completes" but remains in a frozen state
until I do a "suspend/resume" on it on B. Then it runs fully normally.
What do I do to skip the suspend/resume steps?
--
Daniel R. Bidwell | bidwell at andrews.edu
Andrews University | Information Technology
2015 Feb 24
0
[ANNOUNCE] xf86-input-libinput 0.7.0
xf86-input-libinput 0.7.0 is now available. With Friedrich's patch the
the device configuration now gets re-applied after the device is disabled
and re-enabled.
Friedrich Schöller (1):
Reapply configuration at DEVICE_ON
Peter Hutterer (3):
Formatting fix
Only apply left-handed/scroll button configuration when it's available
xf86-input-libinput 0.7.0
git tag:
2011 Sep 15
1
ANNOUNCE: oz 0.7.0 release
All,
I'm pleased to announce release 0.7.0 of Oz. Oz is a program for doing
automated installation of guest operating systems with limited input from
the user.
Release 0.7.0 is a bugfix and feature release for Oz. Some of the
highlights between Oz 0.6.0 and 0.7.0 are:
- Ability to use the "direct initrd injection" method to install Fedora/RHEL
guests. This is an