Giter Site home page Giter Site logo

Comments (9)

andrjohns avatar andrjohns commented on September 22, 2024

I'm not sure how much of a benefit this would bring, since the cost of the c++-generation is pretty trivial and is also needed on any change to rstan or StanHeaders. In terms of distribution, the compiled models can't be shipped with the package source anyway - the package and its models will always be compiled for each platform

from rstantools.

cdriveraus avatar cdriveraus commented on September 22, 2024

But in terms of working on the package it's a huge benefit to not have to recompile in order to work with changes to the rest of the software? I'm not talking about the c++ generation but the .dll etc compilation.

from rstantools.

andrjohns avatar andrjohns commented on September 22, 2024

For local development, you can still follow the same steps like:

pkgbuild::compile_dll()
devtools::load_all()

from rstantools.

cdriveraus avatar cdriveraus commented on September 22, 2024

devtools load_all is no good, ctsem spawns separate r processes which load ctsem, and those load with the locally built version not the temporary devtools one.

from rstantools.

andrjohns avatar andrjohns commented on September 22, 2024

What do you normally use for local development? Once you run pkgbuild::compile_dll() does this not still work?

from rstantools.

cdriveraus avatar cdriveraus commented on September 22, 2024

I just build all then restart rstudio --- the whole point is to avoid compiling the dll if I've only made changes to the .R files. Sorry if I'm missing something. edit: 'install package - ctrl-shift-b'

from rstantools.

andrjohns avatar andrjohns commented on September 22, 2024

In that case, you can just run devtools::install(build=FALSE) and it will use the existing built dll files from the pkgbuild::compile_dll() call

from rstantools.

cdriveraus avatar cdriveraus commented on September 22, 2024

ok. but I have to keep track of it in my head and then use a different command. I'll see how annoying it is :)

from rstantools.

cdriveraus avatar cdriveraus commented on September 22, 2024

This was all based on some kind of misunderstanding / confusing interaction with rstudio config, sorry. recompilation on build is avoided so long as --keep-source is included in the build args and pre-clean before build is disabled.

from rstantools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.