similar to: library

Displaying 20 results from an estimated 400 matches similar to: "library"

2009 Jun 06
1
Qs on calling R from C
Consider the following simple C program: /*** hello_r.c ***/ #include <Rinternals.h> SEXP hello() { return mkString("Hello, world!\n"); } int main(void) { SEXP x = hello(); return x == NULL; /* i.e. 0 on success */ } This program segfaults: % myR/bin/R CMD LINK gcc -I./R-2.9.0/src/include -L./myR/lib64/R/lib -lR hello_r.c -o hello_r > /dev/null % hello_r zsh:
2006 Oct 11
1
panel-dependent distribution in qqmath
In qqmath, how would one go about having 'distribution' change with panel.number? I've tried set.seed(1) mydata <- data.frame(ind = factor(rep(2:4, each = 100))) mydata$val <- rt(300, df=rep(2:4, each = 100)) plot<-qqmath(~ val | ind, layout=c(3,1), data = mydata, prepanel = function(x, distribution, ...) {
2001 Oct 01
1
dataframe manipulation
Hi, a couple of questions on manipulating a dataframe: 1) Without using a for loop (often inefficient, as i understand, in R), is it possible to split a dataframe into a list of dataframes with the number of *columns* in each (child)dataframe specified by the elements of a numeric vector? for example: dataframe 10 20 30 40 24 90 34 12 12 44 67 77 split using the vector c(3, 1) results in 2
2005 Apr 18
2
UnauthorizedAccessException in R(D)COM
Dear friends, I am trying to create a web application to produce some statistical result using R. In order to avoid high CPU usage of web server caused by R, I have to create an ASP.NET web service in another server to involve R. But I am facing the unauthorizedAccessException when I call the web service, even I have assigned access and launch permission to everyone using
2009 Jun 26
1
bug in Rf_PrintValue ?
I'm very green with R, so maybe this is not a bug, but it looks like one to me. The following program segfaults at the second call to Rf_PrintValue(). To failure depends on the value of the y-string. E.g., if I change it from "coverage" to, say, "COVERAGE", the segfault does not occur. /* bug.c */ #include <stdio.h> #include <Rinternals.h> #include
1998 Dec 01
2
help files for libraries that aren't in the defaults library tree
Hello, I created a library for a bunch of functions that I use frequently so that I dont have to carry duplicate copies around to wherever I fire up an R sesssion. However, I have problems locating the help files for those functions. Here are some details. I created the library "myR" and installed this in /home/royle/R using: R INSTALL -l /home/royle/R /home/royle/Rpackages/myR
1998 Dec 01
2
help files for libraries that aren't in the defaults library tree
Hello, I created a library for a bunch of functions that I use frequently so that I dont have to carry duplicate copies around to wherever I fire up an R sesssion. However, I have problems locating the help files for those functions. Here are some details. I created the library "myR" and installed this in /home/royle/R using: R INSTALL -l /home/royle/R /home/royle/Rpackages/myR
2010 Jul 13
1
Building a custom Windows installer
Dear r-devel list members, It's been several years since I last built a custom Windows installer for R, and despite my notes and the instructions in Sections 3.1.7 and D.4 of the R Installation and Administration Manual, I've run into a problem, receiving the following error message: ----------- snip ----------- C:\R\src\R-2.11.1\src\gnuwin32\installer>make myR
2009 Apr 15
1
Compiling Fortran Subroutines as R Shared Objects on Mac OS-X
Hello, I am trying to compile some F77 subroutines as shared objects for R on my Mac. --> Mac OS-X Version 10.4.11 (Tiger Intel Mac) I have done this (successfully) before on Sun Solaris and Linux Fedora systems using the following command. > R CMD SHLIB myfile.f I have g77 installed from this page. http://hpc.sourceforge.net/ I am using R 2.8.1, and I have installed all 4 additional
2005 Apr 05
4
lists: removing elements, iterating over elements,
I'm writing R code to calculate Hierarchical Social Entropy, a diversity index that Tucker Balch proposed. One article on this was published in Autonomous Robots in 2000. You can find that and others through his web page at Georgia Tech. http://www.cc.gatech.edu/~tucker/index2.html While I work on this, I realize (again) that I'm a C programmer masquerading in R, and its really
2012 Apr 10
1
Building customized R for Windows installer using 'make myR'
I am attempting to build a customized R installer on Windows, using the Inno Setup installer. I am following the instructions in Section 3.1.8 of the R Installation and Administration Manual ("Building the Inno Setup installer"), which includes the following passage: An alternative way to customize the installer starting with a binary distribution is to first make a full
2008 Mar 30
2
tests Rin Rout
Hi the list, Some rumour (!) say that is it possible to prepare some tests for checking our code using .Rin and .Rout. It seems to be a very good practice, but I did not manage to find information on it. So does someone know how it works ? What are we suppose to write in Rin ? More precisely : - I have a package myPack.r in directories ~/myR/myPack/R/ - I create the directory
2023 Aug 22
2
Is r2u at 3.4.1? [branch about handling package collisions under Ubuntu/Debian]
This is definitely tangential to the list: I'm on Ubuntu (22.04.2 LTS) not Debian and I'm sure this is about issues in the Ubuntu package management on my machine, R is only revealing them. The original subject line came from me wondering if my going over to the r2u repository would solve the problem.? However, as I think Dirk said, that's only really likely to be answered by trying
2001 Nov 28
2
Problem with printer driver sharing Win2k klients.
Hi... I got this new server at work that I have to get 100% up and running by tomorrow. It's running Samba 2.2.1a on SuSE 7.3 Pro It's supposed to be VPN - File and Printer Server The printers are: One OCE 700C / CS90 color copier and One OCE 3165 And there is only one problem left. I can install the printer drivers for Win9x & NT on the samba server. But I can't figure out how to
2012 Jan 14
1
Converting .Rout file to pdf via Sweave automatically
The R documentation mentions to create a PDF or DVI file from an Rnw template, the Sweave command can be used used. However, is there any way to go from a .Rout file straight to pdf with an Rnw template ? What I'm trying to avoid is adding the Sweave markup to the .tex file manually. What I think I'm missing is the exact arguments to the Sweave command. I tried numerous forms of:
2010 Feb 23
1
patch about compile R with clang
clang is compiler http://clang.llvm.org, it is fast and better c compiler then gcc, yesterday i use clang and gfortran compile R. The only two change in source code is : 1. the configure file (in confiure when test include wctype.h,gcc can compile but clang need include both wchar.h wctype.h),so this is patch --- /r/configure +++ /myr/configure @@ -39172,6 +39172,7 @@ cat
2015 Oct 27
3
Secure dynamic update failure with internal DNS
Hello, At one point secure dynamic updates worked. Now I require 'allow dns updates = nonsecure' for dynamic updates to work. I can't seem to find any trace of updates being performed in the samba logs or Windows. I've hit a wall and can't seem to progress. Since I couldn't pull anything from the logs I decided to run 'nsupdate -g -d -D -L 10'. This was
2009 Jun 08
0
How to explore R internals through gdb?
Hi everyone. I'm trying to learn my way around the R internals. I've gone pretty much as far as I can go with the information given in Writing R Extensions and R Internals, but I still have a lot of questions, too many in fact to post them to the r-devel list. But I think I could answer many of these if I could just step through R's execution during some basic operations. What
2003 Aug 14
0
Simple C-R interface, SEXP and other declarations
I am trying to integrate OpenOffice Calc (OO) with R. One of the steps I am taking is to create a very simple command line C program with the R shared lib embedded in it. It would simply pass an R/S expression to R, print the result, and catch errors. I know this is "overkill," but it is a step toward something larger. Has anyone done this before? If so, I would love to check out
2004 Oct 21
1
C++ dev
Hello, I wish to use R functions in a C++ programm. I have installed D COM Server but with this application i think it isn't possible to acces mouse event..., is it true? My second idea is to compile libraries which are used, but i haven't source code, and the libraries existing are compiled under unix, but i'd like have .lib and .dll Thanks for your informations Sandrine