Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add a NAMESPACE file for R
  • Loading branch information
Soeren Sonnenburg committed Nov 6, 2011
1 parent aaaaab2 commit 9b3d028
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/.r-install.sh
Expand Up @@ -58,6 +58,13 @@ echo "x=structure(list(DESCRIPTION = c(Package='$2',\
if test "$2" = "sg" || test "$2" = "elwms"
then
echo "Installing static sg/elwms interface for R"
cat >"$1/$2/NAMESPACE" <<EOF
export( current.packages,
sg,
)
S3method(sg, default)
EOF

cat >"$1/$2/R/$2" <<EOF
.packageName <- "$2"
# The purpose of this file is to supply no functionality
Expand Down Expand Up @@ -127,6 +134,13 @@ EOF
else
echo "Installing modular shogun interface for R"

cat >"$1/$2/NAMESPACE" <<EOF
export( current.packages,
shogun,
)
S3method(shogun, default)
EOF

cat >"$1/$2/R/$2" <<EOF
.packageName <- "$2"
#$2 <- function(...) .External("$2",...,PACKAGE="$2")
Expand Down

0 comments on commit 9b3d028

Please sign in to comment.