On 23/08/2013 10:06, Andreas Dibiasi wrote:
The CRAn binary is the first thing I tried. When using

install.packages("fame")
require(fame)

I get the following output:

under R x64:

install.packages("fame")
Installing package into ‘C:/APPS/R/R-3.0.1/library’
(as ‘lib’ is unspecified)
trying URL 
'http://cran.rstudio.com/bin/windows/contrib/3.0/fame_2.18.zip'Content
type 'application/zip' length 107168 bytes (104 Kb)opened
URLdownloaded 104 Kb
package ‘fame’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
        C:\Users\user\AppData\Local\Temp\Rtmpo1A2G1\downloaded_packages>
require(fame)Lade nötiges Paket: fameLade nötiges Paket: tisError :
.onLoad in loadNamespace() für 'fame' fehlgeschlagen, Details:
   Aufruf: inDL(x, as.logical(local), as.logical(now), ...)
   Fehler: unable to load shared object 'C:/Program Files (x86)/FAME/chli.dll':
   LoadLibrary failure:  %1 is not a valid Win32 application.

So this message is about your FAME installation. It seems the latter is 32-bit and you say you are using 64-bit R. What did the maintainer say when you asked him (see the posting guide)? Also: check your setting of variable FAME if you do have 64-bit FAME installed.




and under R i386:

require(fame)Lade nötiges Paket: fameLade nötiges Paket: tisError : .onLoad in 
loadNamespace() für 'fame' fehlgeschlagen, Details:
   Aufruf: library.dynam("fame", package = "fame")
   Fehler: argument "lib.loc" is missing, with no default


It is basically the same as using the package from source.

I checked the .onLoad function specified in the source package and there is
indeed no specification for lib.loc and no default specified. If I run the
function separatly and specify lib.loc as .libsPaths() the function seems
to work.
My .libPaths() are the following:

[1] "C:/APPS/R/R-3.0.1/library" "C:/R/R-3.0.1/library"

could this be an issue? which other environmental variable could be responsible?

Best,
Andreas Dibiasi



On 21 August 2013 18:05, Uwe Ligges <lig...@statistik.tu-dortmund.de> wrote:

Probably something with your environment and/or your toolset.

Does the CRAN binary work for you?

i.e. just use

  install.packages("fame")

and try it out..

Best,
Uwe Ligges




On 20.08.2013 11:07, Andreas Dibiasi wrote:

I have problems to install the FAME package. I have installed the fame
client 9.3.32.2 and the environmental variable is set. However, for
some reason, the warnings "error: argument "lib.loc" > is missing,
with no default" pops up under the i386 installation and "LoadLibrary
failure:  %1 is not a valid Win32 application" under x64. Has anyone
experienced similar problems and know the a way how to solve it?


R version 3.0.1 (2013-05-16) -- "Good Sport"
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.


  install.packages("fame", repos = "http://cran.r-project.org/";,
type="source")Installing package into ‘C:/APPS/R/R-3.0.1/library’

(as ‘lib’ is unspecified)trying URL
'http://cran.r-project.org/**src/contrib/fame_2.18.tar.gz'**Content<http://cran.r-project.org/src/contrib/fame_2.18.tar.gz'Content>type
'application/x-gzip' length 51940 bytes (50 Kb)opened URLdownloaded 50

Kb
* installing *source* package 'fame' ...
** Paket 'fame' erfolgreich entpackt und MD5 Summen überprüft
** libs

*** arch - i386
cygwin warning:
    MS-DOS style path detected: C:/R/R-30~1.1/etc/i386/**Makeconf
    Preferred POSIX equivalent is: /cygdrive/c/R/R-30~1.1/etc/**
i386/Makeconf
    CYGWIN environment variable option "nodosfilewarning" turns off this
warning.
    Consult the user's guide for more details about POSIX paths:
      
http://cygwin.com/cygwin-ug-**net/using.html#using-pathnames<http://cygwin.com/cygwin-ug-net/using.html#using-pathnames>
gcc -m32 -I"C:/R/R-30~1.1/include" -DNDEBUG -Dfame -DDUMMY_CALLS
-I"d:/RCompile/CRANpkg/**extralibs64/local/include"     -O3 -Wall
-std=gnu99 -mtune=core2 -c chli.c -o chli.o
gcc -m32 -I"C:/R/R-30~1.1/include" -DNDEBUG -Dfame -DDUMMY_CALLS
-I"d:/RCompile/CRANpkg/**extralibs64/local/include"     -O3 -Wall
-std=gnu99 -mtune=core2 -c fame.c -o fame.o
gcc -m32 -shared -s -static-libgcc -o fame.dll tmp.def chli.o fame.o
-Ld:/RCompile/CRANpkg/**extralibs64/local/lib/i386
-Ld:/RCompile/CRANpkg/**extralibs64/local/lib -LC:/R/R-30~1.1/bin/i386
-lR
C:\Rtools\gcc-4.6.3\bin\nm.**exe: chli.c: File format not recognized
gcc -m32 -shared -s -static-libgcc -o chli.dll chli.def chli.c
-L"d:/RCompile/CRANpkg/**extralibs64/local/lib/i386"
-L"d:/RCompile/CRANpkg/**extralibs64/local/lib"
-L"C:/R/R-30~1.1/bin/i386" -lR
installing to C:/APPS/R/R-3.0.1/library/**fame/libs/i386

*** arch - x64
cygwin warning:
    MS-DOS style path detected: C:/R/R-30~1.1/etc/x64/Makeconf
    Preferred POSIX equivalent is: /cygdrive/c/R/R-30~1.1/etc/**
x64/Makeconf
    CYGWIN environment variable option "nodosfilewarning" turns off this
warning.
    Consult the user's guide for more details about POSIX paths:
      
http://cygwin.com/cygwin-ug-**net/using.html#using-pathnames<http://cygwin.com/cygwin-ug-net/using.html#using-pathnames>
gcc -m64 -I"C:/R/R-30~1.1/include" -DNDEBUG -Dfame -DDUMMY_CALLS
-I"d:/RCompile/CRANpkg/**extralibs64/local/include"     -O2 -Wall
-std=gnu99 -mtune=core2 -c chli.c -o chli.o
gcc -m64 -I"C:/R/R-30~1.1/include" -DNDEBUG -Dfame -DDUMMY_CALLS
-I"d:/RCompile/CRANpkg/**extralibs64/local/include"     -O2 -Wall
-std=gnu99 -mtune=core2 -c fame.c -o fame.o
gcc -m64 -shared -s -static-libgcc -o fame.dll tmp.def chli.o fame.o
-Ld:/RCompile/CRANpkg/**extralibs64/local/lib/x64
-Ld:/RCompile/CRANpkg/**extralibs64/local/lib -LC:/R/R-30~1.1/bin/x64
-lR
C:\Rtools\gcc-4.6.3\bin\nm.**exe: chli.c: File format not recognized
gcc -m64 -shared -s -static-libgcc -o chli.dll chli.def chli.c
-L"d:/RCompile/CRANpkg/**extralibs64/local/lib/x64"
-L"d:/RCompile/CRANpkg/**extralibs64/local/lib"
-L"C:/R/R-30~1.1/bin/x64" -lR
installing to C:/APPS/R/R-3.0.1/library/**fame/libs/x64
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
Error : .onLoad failed in loadNamespace() for 'fame', details:
    call: library.dynam("fame", package = "fame")
    error: Argument "lib.loc" fehlt (ohne Standardwert)
Fehler: Laden fehlgeschlagen
Ausführung angehalten
*** arch - x64
Error : .onLoad failed in loadNamespace() for 'fame', details:
    call: inDL(x, as.logical(local), as.logical(now), ...)
    error: kann shared object 'C:/Program Files (x86)/FAME/chli.dll' nicht
laden:
    LoadLibrary failure:  %1 is not a valid Win32 application.

Fehler: Laden fehlgeschlagen
Ausführung angehalten
ERROR: loading failed for 'i386', 'x64'
* removing 'C:/APPS/R/R-3.0.1/library/**fame'
* restoring previous 'C:/APPS/R/R-3.0.1/library/**fame'
Warning in install.packages :
    running command '"C:/R/R-30~1.1/bin/x64/R" CMD INSTALL -l
"C:\APPS\R\R-3.0.1\library"
C:\Users\user\AppData\Local\**Temp\RtmpsbCarY/downloaded_**
packages/fame_2.18.tar.gz'
had status 1
Warning in install.packages :
    installation of package ‘fame’ had non-zero exit status

The downloaded source packages are in
         ‘C:\Users\user\AppData\Local\**Temp\RtmpsbCarY\downloaded_**
packages’

         [[alternative HTML version deleted]]



______________________________**________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/**listinfo/r-help<https://stat.ethz.ch/mailman/listinfo/r-help>
PLEASE do read the posting guide http://www.R-project.org/**
posting-guide.html <http://www.R-project.org/posting-guide.html>
and provide commented, minimal, self-contained, reproducible code.




        [[alternative HTML version deleted]]



______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



--
Brian D. Ripley,                  rip...@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to