-
-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot load the package after building locally from clone #190
Comments
You have to install it once from a shell
R CMD INSTALL --preclean rstanarm
…On Wed, May 24, 2017 at 3:25 PM, Jouni Helske ***@***.***> wrote:
Summary:
I cannot build and load the rstanarm package locally.
Description:
When I clone the rstanarm repo from github and try to build it locally in
Rstudio, I get following output:
==> R CMD INSTALL --no-multiarch --with-keep.source --precleanOOPS rstanarm
Warning: unknown option ‘--precleanOOPS’
* installing to library ‘/home/jouni/R/x86_64-pc-linux-gnu-library/3.4’
* installing *source* package ‘rstanarm’ ...
** libs
make: Nothing to be done for 'all'.
installing to /home/jouni/R/x86_64-pc-linux-gnu-library/3.4/rstanarm/libs
** R
** data
*** moving datasets to lazyload DB
** demo
** exec
** inst
** preparing package for lazy loading
starting worker pid=20021 on localhost:11800 at 20:12:11.816
starting worker pid=20033 on localhost:11800 at 20:12:12.628
starting worker pid=20044 on localhost:11800 at 20:12:13.412
starting worker pid=20058 on localhost:11800 at 20:12:14.220
starting worker pid=20069 on localhost:11800 at 20:12:14.938
starting worker pid=20080 on localhost:11800 at 20:12:15.597
No man pages found in package ‘rstanarm’
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error: package or namespace load failed for ‘rstanarm’ in .doLoadActions(where, attach):
error in load action .__A__.1 for package rstanarm: is(module, "character"): object 'm' not found
Error: loading failed
Execution halted
ERROR: loading failed
Note that I get same error also if I build a new template package using
rstantools's rstan_package_skeleton and try to load that.
I have tried this both with CRAN versions of Rcpp and the github version.
Reproducible Steps:
Just cloned the repo from Github, made a new project in Rstudio and hit
"clean and rebuild".
RStanARM Version:
commit a34c75e
<a34c75e>,
but likely not commit dependent.
R Version:
R version 3.4.0 (2017-04-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Operating System:
Ubuntu 17.04
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#190>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADOrqlhdAIyElKCCokoAR0G0A8z2_v5kks5r9IQvgaJpZM4Nlj2m>
.
|
Thanks, that seems to work. Seem a bit strange, why is this needed? For vanilla package built using |
I guess this can be closed. I finally managed to get |
Having to do the installation outside of RStudio is strange, but it is
worth it to be able to build and reload without recompiling the C++ code. I
am not sure why init.cpp has to be changed to init.c. Do you remember the
error message? In rstanarm, we have init.cpp. I guess it does not make any
difference though.
…On Thu, May 25, 2017 at 7:16 AM, Jouni Helske ***@***.***> wrote:
I guess this can be closed. I finally managed to get
rstan_package_skeleton package working as well, I needed to change
init.cpp to init.c.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#190 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADOrqtfMEblGsAeAgShg-30m3RS_ad2jks5r9WMngaJpZM4Nlj2m>
.
|
The error message was the same as above, but actually I don't think that renaming made any difference. I was just messing around trying to get things working and did two things at same time and mistakenly though the renaming was the solution. Basically RTFM (read-and-delete-me file) + actually add some stan files to the package (without the latter the module and package loading fails because there isn't any modules to load). |
You can delete `--precleanOOPS` from the rstanarm.Rproj file or change the
build options in RStudio to remove it. Then it will rebuild the C++ files
every time.
…On Sun, May 28, 2017 at 1:23 PM, Jouni Helske ***@***.***> wrote:
The error message was the same as above, but actually I don't think that
renaming made any difference. I was just messing around trying to get
things working and did two things at same time and mistakenly though the
renaming was the solution. Basically RTFM (read-and-delete-me file) +
actually add some stan files to the package (without the latter the module
and package loading fails because there isn't any modules to load).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#190 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADOrqsbMxJFdPVGLvz3Adb_rGT9WkSOUks5r-a2pgaJpZM4Nlj2m>
.
|
Summary:
I cannot build and load the
rstanarm
package locally.Description:
When I clone the
rstanarm
repo from github and try to build it locally in Rstudio, I get following output:Note that I get same error also if I build a new template package using
rstantools
'srstan_package_skeleton
and try to load that.I have tried this both with CRAN version of Rcpp and the github version.
Note also that installing
rstanarm
from CRAN usinginstall.packages
works fine.Reproducible Steps:
Just cloned the repo from Github, made a new project in Rstudio and hit "clean and rebuild".
RStanARM Version:
commit a34c75e, but likely not commit dependent.
R Version:
R version 3.4.0 (2017-04-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Operating System:
Ubuntu 17.04
The text was updated successfully, but these errors were encountered: