The R Project SVN R

Rev

Rev 27595 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27595 Rev 27636
Line 2... Line 2...
2
#
2
#
3
# ${R_HOME}/bin/INSTALL for installing add-on packages
3
# ${R_HOME}/bin/INSTALL for installing add-on packages
4
 
4
 
5
# @configure_input@
5
# @configure_input@
6
 
6
 
7
revision='$Revision: 1.144 $'
7
revision='$Revision: 1.145 $'
8
version=`set - ${revision}; echo ${2}`
8
version=`set - ${revision}; echo ${2}`
9
version="R add-on package installer ${version}
9
version="R add-on package installer ${version}
10
 
10
 
11
Copyright (C) 2000-2003 The R Core Development Team.
11
Copyright (C) 2000-2003 The R Core Development Team.
12
This is free software; see the GNU General Public Licence version 2
12
This is free software; see the GNU General Public Licence version 2
Line 538... Line 538...
538
    if test ${?} -ne 0; then
538
    if test ${?} -ne 0; then
539
      error "execution of package source for '${pkg_name}' failed"
539
      error "execution of package source for '${pkg_name}' failed"
540
      do_exit_on_error
540
      do_exit_on_error
541
    fi
541
    fi
542
    test -f NAMESPACE || mv .RData "${rda_file}"
542
    test -f NAMESPACE || mv .RData "${rda_file}"
-
 
543
    ## we used to install the dumped code but this seems a waste of space
-
 
544
    rm "${code_file}"
543
    mv "${code_file}" "${R_PACKAGE_DIR}/R/${pkg_name}.R"
545
    # mv "${code_file}" "${R_PACKAGE_DIR}/R/${pkg_name}.R"
544
    cat "${R_HOME}/share/R/${loader_file}" > "${code_file}"
546
    cat "${R_HOME}/share/R/${loader_file}" > "${code_file}"
545
    ## If install.R is non-empty, arrange to evaluate the R code it
547
    ## If install.R is non-empty, arrange to evaluate the R code it
546
    ## contains after the package source (maybe for some kind of
548
    ## contains after the package source (maybe for some kind of
547
    ## cleanup).
549
    ## cleanup).
548
    if test -s install.R; then
550
    if test -s install.R; then