INRA logo MaIAGE nls2


NLS2: installation on Windows
  1. Unload the file, NLS2-1.0-windows-installer.exe.zip (2.3Mb). Uncompress and install it: an executable file, WinNLS2, will be created.
  2. Unload the tar-archive file, winnls2.tar.gz, which contains the R functions and the help-files. Uncompress and untar it: a directory html and a directory R will be created.
  3. Load the file R/winnls2.R into a R session to install the R functions.
  4. Open the file html/index.html in a browser to see the helps-files.
H. Le Nagard (herve.lenagard AT bichat.inserm.fr) is the person in charge of the Windows version

 

NLS2: installation on Unix-alike systems

The source-code is provided. You need to compile it.

  1. Make sure the required tools are available: read the pre-requisite.
  2. Unload the tar-archive file nls2_2013.0.3.tar.gz in the installation directory, typically in the directory of the R librairies. Uncompress and un-tar it.
  3. Check the environment variable R_SHARE_DIR. Open a R session, and type in:
    Sys.getenv("R_SHARE_DIR")
    
    If the value is not "/usr/share/R", change the value of the variable R_SHARE_DIR in the file nls2/src/Makefile.in
  4. Read the comments included in the file nls2/INSTALL and invoke this script with the appropriate arguments. ( R CMD INSTALL does not work since the R.2 version.)
    Example of a typical installation:
    cd /usr/local/lib/R/library # directory of the R librairies, whatever it is on your platform
    #  download the tar-archive file in this directory
    tar xf nls2_2013.0.3.tar.gz   
    cd nls2
    ./INSTALL
    
  5. Examples are automatically executed by the shell-script INSTALL. Verify the ouput of some of them in the files suffixed by Rout in the directory nls2/demo.
  6. Customize the user environment:
    • Insert the pathname of nls2 in the command-path-list of the users.
      Example (bash): export PATH=$PATH:/usr/local/lib/R/library/nls2
    • nls2 is available from a R or Splus session by the command:
      - attach("installation-dir-pathname/nls2/.RData") (R version)
      - attach("installation-dir-pathname/nls2/.Data") (Splus version)
    • Helps are available in HTML format, in the directory nls2/html.

 


© INRA, 2001-