Package: r-cran-rstan / 2.21.2-3

fix_library_locations.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: RcppParallel lib is located within libs/ not lib/ 
 Only the shared object is included, which is within libs/ directory
Author: Shayan Doust <[email protected]>
Last-Update: 2020-09-23
---

Index: r-cran-rstan/R/plugin.R
===================================================================
--- r-cran-rstan.orig/R/plugin.R
    r-cran-rstan/R/plugin.R
@@ -91,9  91,9 @@ rstanplugin <- function() {
   }
   else {
     StanHeaders_pkg_libs <- system.file("lib", .Platform$r_arch,
-                                        package = "StanHeaders", mustWork = TRUE)
-    RcppParallel_pkg_libs <- system.file("lib", .Platform$r_arch,
-                                         package = "RcppParallel", mustWork = TRUE)
 					package = "StanHeaders", mustWork = TRUE)
     RcppParallel_pkg_libs <- system.file("libs", .Platform$r_arch,
 					 package = "RcppParallel", mustWork = TRUE)
     rstan_StanServices <- system.file("lib", .Platform$r_arch, "libStanServices.a",
                                       package = "rstan", mustWork = TRUE)
   }