DistanceDevelopment / dssd

Distance Sampling Survey Design
1 stars 1 forks source link

Install dssd 1.0.0 from CRAN onto Win machine running R 4.1.3 #93

Closed erex closed 2 years ago

erex commented 2 years ago

Console resulting from update to dssd 1.0.0 this afternoon:

R version 4.1.3 (2022-03-10) -- "One Push-Up"
Copyright (C) 2022 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.

[Workspace loaded from ~/.RData]

> install.packages("dssd")
Installing package into ‘C:/Users/erexs/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)

  There is a binary version available but the source version is later:
     binary source needs_compilation
dssd  0.3.4  1.0.0             FALSE

installing the source package ‘dssd’

trying URL 'https://cran.rstudio.com/src/contrib/dssd_1.0.0.tar.gz'
Content type 'application/x-gzip' length 1029238 bytes (1005 KB)
downloaded 1005 KB

* installing *source* package 'dssd' ...
** package 'dssd' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
  converting help for package 'dssd'
    finding HTML links ... done
    Coverage.Grid-class                     html  
    Line.Transect-class                     html  
    Line.Transect.Design-class              html  
    Point.Transect-class                    html  
    Point.Transect.Design-class             html  
    Region-class                            html  
    Segment.Transect-class                  html  
    Segment.Transect.Design-class           html  
    Survey.Design-class                     html  
    Transect-class                          html  
    calculate.effort                        html  
    dssd-package                            html  
    generate.transects-methods              html  
    get.area-methods                        html  
    get.coverage-methods                    html  
    make.coverage                           html  
    make.design                             html  
    make.region                             html  
    plot.Coverage.Grid-methods              html  
    plot.Region-methods                     html  
    plot.Survey.Design-methods              html  
    plot.Transect-methods                   html  
    run.coverage                            html  
    show.Survey.Design-methods              html  
    show.Transect-methods                   html  
    write.transects                         html  
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
*** arch - i386
Error: package or namespace load failed for 'dssd' in library.dynam(lib, package, package.lib):
 DLL 'Rcpp' not found: maybe not installed for this architecture?
Error: loading failed
Execution halted
*** arch - x64
ERROR: loading failed for 'i386'
* removing 'C:/Users/erexs/Documents/R/win-library/4.1/dssd'
* restoring previous 'C:/Users/erexs/Documents/R/win-library/4.1/dssd'
Warning in install.packages :
  installation of package ‘dssd’ had non-zero exit status

The downloaded source packages are in
    ‘C:\Users\erexs\AppData\Local\Temp\Rtmpo5mtTQ\downloaded_packages’

Is this failure caused by my not using the more recent R 4.2.1? Must users have R 4.2.1 or greater to install dssd? I do have the Rcpp package on my machine, not sure why dssd wants that.

lenthomas commented 2 years ago

Hmm... I just tried on my laptop, which is running R 4.1.1 (yes, I know, needs updating), and had no problems, just using the binary on CRAN:

R version 4.1.1 (2021-08-10) -- "Kick Things"
Copyright (C) 2021 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.

  Natural language support but running in an English locale

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("dssd")
Installing package into ‘C:/Users/lt5/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.1/dssd_1.0.0.zip'
Content type 'application/zip' length 1014802 bytes (991 KB)
downloaded 991 KB

package ‘dssd’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
        C:\Users\lt5\AppData\Local\Temp\Rtmp69Uc33\downloaded_packages
> library(dssd)
Warning message:
package ‘dssd’ was built under R version 4.1.3 
erex commented 2 years ago

dssd installs on Thursday morning, after the machine had a good night's sleep.