-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 37c1c69
Showing
719 changed files
with
251,076 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Package: rcqp | ||
Type: Package | ||
Title: interface to the Corpus Query Protocol | ||
Version: 0.1 | ||
Date: 2012-05-04 | ||
Author: Bernard Desgraupes <bernard.desgraupes@u-paris10.fr>, Sylvain | ||
Loiseau <sylvain.loiseau@univ-paris13.fr> | ||
Maintainer: Sylvain Loiseau, University of Paris 13 | ||
<sylvain.loiseau@univ-paris13.fr> | ||
Depends: R (>= 1.8.0), plyr | ||
Suggests: reshape | ||
Description: implements Corpus Query Protocol functions based on the | ||
CWB software. Rely on CWB (GPL v2), PCRE (BSD licence), glib2 | ||
(LGPL). | ||
License: GPL-2 | ||
Lazyload: yes | ||
URL: http://www.r-project.org | ||
Collate: main.R zzz.R s3.R | ||
Encoding: latin1 | ||
SystemRequirements: GNU make | ||
Packaged: 2012-06-26 08:51:29 UTC; ripley | ||
Repository: CRAN | ||
Date/Publication: 2012-06-26 08:51:29 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
Instructions to compile the rcqp package | ||
|
||
This document explains how to compile the rcqp extension for R on a Unix like | ||
system, including Mac OS X. | ||
|
||
|
||
|
||
Prerequisites | ||
============= | ||
|
||
Building tools necessary: | ||
- GCC 3.3 or newer recommended | ||
- the ar and ranlib code archive utilities | ||
- GNU make | ||
- GNU bison & flex to generate the parsers | ||
- the pkg-config program to find the required dependencies | ||
|
||
Obviously R must be installed on your system since rcqp is designed to be | ||
an R extension and the compiling process needs to read the R headers. | ||
|
||
Additionnally two external libraries are necessary to compile the CWB | ||
source code: | ||
- the PCRE library: at least version 7 is recommended. | ||
It is available to download from this address: | ||
http://www.pcre.org/ | ||
|
||
- the Glib library: at least version 2 is required. | ||
It is available to download from this address: | ||
http://www.gtk.org/download.html | ||
|
||
Follow the instructions coming with these two libraries to compile and | ||
install them on your machine if they are not already present. | ||
On Mac OS X, installing PCRE and Glib can be done using the MacPorts | ||
system. If MacPorts is installed on your system, you just have to type the | ||
following commands in a Terminal window in order to download, compile and | ||
install the PCRE and the Glib libraries : | ||
sudo port -v install pcre | ||
sudo port -v install glib2 | ||
|
||
|
||
|
||
Download | ||
======== | ||
|
||
The source code of the rcqp package is placed in a Subversion repository at | ||
RForge. In order to retrieve the source files, you need a Subversion | ||
client. If the command line client is installed on your machine, just type | ||
the following instruction from a Terminal window : | ||
svn checkout svn://scm.r-forge.r-project.org/svnroot/rcwb/pkg/rcqp | ||
|
||
|
||
|
||
Configuration | ||
============= | ||
|
||
You can specify platform-specific and site-specific settings on the | ||
./configure command line using the RCQP_PLATFORM and RCQP_SITE variables. | ||
Their default values are 'linux' and 'standard' respectively. The possible | ||
values are the names mentionned in the commentys at the top of the the file | ||
cwb/configRcqp.mk. | ||
|
||
For cross-compilation for Windows, you should use mingw | ||
./configure RCQP_PLATFORM=mingw | ||
More details on cross-compilation below. | ||
|
||
|
||
|
||
Building and installing with R on a Unix-like system | ||
==================================================== | ||
|
||
From the directory containing the source code, i-e the directory containing | ||
the rcqp/ directory, execute the following command: | ||
R CMD install rcqp | ||
|
||
R will automatically find the configure script, run it, execute the make | ||
command and finally install the package in the appropriate location. | ||
|
||
If everything went as expected, your rcqp extension should now be | ||
available. From the R console, type the following instruction to load it: | ||
> library(rcqp) | ||
|
||
To get a detailed tutorial about how to use the functions it defines, read | ||
the vignette coming with the package. For this, you just have to type the | ||
following from the R console: | ||
> vignette("rcqp") | ||
|
||
Help is also available through the usual mechanism. For instance, start with: | ||
> ?rcqp | ||
|
||
|
||
|
||
Cross-compilation for Windows | ||
============================= | ||
|
||
The rcqp dynamic library can be compiled for Windows via cross-compilation | ||
on a Unix-like system. To do this, you need a cross-compiler. For instance, | ||
in order to cross-compile on a Mac OS X machine, you can use the | ||
i386-mingw32-gcc compiler which can be installed using MacPorts | ||
(http://www.macports.org/). If MacPorts is installed on your machine, the | ||
instruction is: | ||
sudo port -v install i386-mingw32-gcc | ||
|
||
The configuration script needs to know about the following variables: | ||
RCQP_CROSS_CC | ||
RCQP_CROSS_HOST | ||
RCQP_CROSS_ARCH | ||
|
||
The easiest way to define them is to create a configuration file named | ||
'rcqpcrossrc' in the same directory as the configure script itself. This | ||
file should contain definitions for the variables above. For instance | ||
RCQP_CROSS_CC=i386-mingw32-gcc | ||
RCQP_CROSS_HOST=i386-mingw32 | ||
RCQP_CROSS_ARCH=i386 | ||
There is an example file in Extras/Scripts/Shell. | ||
|
||
You must also compile the pcre and glib-2.0 libraries using this cross- | ||
compiler. Finally you also need to get the R.dll library for Windows used | ||
by R. Alternatively you can find prebuilt binaires on the internet, like | ||
http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.28/glib-dev_2.28.8-1_win32.zip | ||
|
||
These external libraries should be located in some directory on your | ||
machine. This directory contains the usual bin, include, lib | ||
subdirectories. | ||
|
||
You specify the path to this directory in a variable named CROSS_COMPILATION_DIR | ||
which you can pass on the command line when you run the configure script. | ||
|
||
You must also specify the RCQP_PLATFORM variable and set its value to | ||
'mingw' as explained in the 'Configuration' section above.. | ||
|
||
So a typical configuration command for cross-compilation for Windows is for | ||
instance: | ||
|
||
./configure RCQP_PLATFORM=mingwRcqp \ | ||
CROSS_COMPILATION_DIR=/path/to/external/libs \ | ||
--host=$RCQP_CROSS_HOST | ||
|
||
where you replace /path/to/external/libs by the appropriate path. | ||
|
||
After successively running the configure script, change directory to the | ||
src/ subdirectory and execute the following instructions | ||
make clean | ||
make | ||
|
||
If everything goes right you should have at the end a rcqp.dll library in the | ||
CROSS_COMPILATION_DIR subdirectory. | ||
|
||
Troubleshooting | ||
=============== | ||
|
||
In case of problems, please contact one of the authors of the rcqp project. | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
This package is free software; you can redistribute it and/or modify it under | ||
the terms of the GNU General Public License as published by the Free Software | ||
Foundation; either version 2 or 3 of the License (at your option). | ||
|
||
This program is distributed in the hope that it will be useful, but WITHOUT ANY | ||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
|
||
A copy of the GNU General Public License is available at | ||
http://www.r-project.org/Licenses/ . A copy of version 2 is included in the | ||
sources as file COPYING. | ||
|
||
Dependencies: | ||
|
||
1/ Binaries of this program includes the following third party component: | ||
|
||
- CWB (of which this program is basically a wrapper for R), GPL Licence, http://cwb.sourceforge.net/ | ||
|
||
1/ Binaries of this program may include components (through dynamic linking) or | ||
totality (on Windows) of the following third party pieces of software: | ||
|
||
- PCRE, BSD Licence, http://www.pcre.org According to terms of BSD Licence this | ||
licence is reproduced bellow. | ||
- GLIB2, LGPL Licence, http://www.gtk.org/download.html | ||
|
||
2/ The source code of this program includes a copy of the source code of the CWB | ||
program, version +/- 3.0 | ||
|
||
|
||
|
||
============================================================================== | ||
|
||
PCRE "licence.txt" | ||
|
||
PCRE LICENCE | ||
------------ | ||
|
||
PCRE is a library of functions to support regular expressions whose syntax | ||
and semantics are as close as possible to those of the Perl 5 language. | ||
|
||
Release 8 of PCRE is distributed under the terms of the "BSD" licence, as | ||
specified below. The documentation for PCRE, supplied in the "doc" | ||
directory, is distributed under the same terms as the software itself. | ||
|
||
The basic library functions are written in C and are freestanding. Also | ||
included in the distribution is a set of C++ wrapper functions. | ||
|
||
|
||
THE BASIC LIBRARY FUNCTIONS | ||
--------------------------- | ||
|
||
Written by: Philip Hazel | ||
Email local part: ph10 | ||
Email domain: cam.ac.uk | ||
|
||
University of Cambridge Computing Service, | ||
Cambridge, England. | ||
|
||
Copyright (c) 1997-2010 University of Cambridge | ||
All rights reserved. | ||
|
||
|
||
THE C++ WRAPPER FUNCTIONS | ||
------------------------- | ||
|
||
Contributed by: Google Inc. | ||
|
||
Copyright (c) 2007-2010, Google Inc. | ||
All rights reserved. | ||
|
||
|
||
THE "BSD" LICENCE | ||
----------------- | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright notice, | ||
this list of conditions and the following disclaimer. | ||
|
||
* Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions and the following disclaimer in the | ||
documentation and/or other materials provided with the distribution. | ||
|
||
* Neither the name of the University of Cambridge nor the name of Google | ||
Inc. nor the names of their contributors may be used to endorse or | ||
promote products derived from this software without specific prior | ||
written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE | ||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
POSSIBILITY OF SUCH DAMAGE. | ||
|
||
End | ||
|
||
|
Oops, something went wrong.