atsa-es / marssTMB

Companion package for MARSS that allows you to use TMB to fit MARSS models
https://atsa-es.github.io/marssTMB/
1 stars 0 forks source link

Making RStudio rebuild .so and .o files? #3

Closed eeholmes closed 1 year ago

eeholmes commented 1 year ago

@ericward-noaa When I change .hpp files, the .so and .o files don't get rebuild when I hit 'Install' and rebuild the package the .so and .o files don't rebuild. What am I doing wrong? Thanks!!

ericward-noaa commented 1 year ago

The .o and .so files seem to be only built for the .cpp files, not .h files. Most of the packages I've worked with previously have had the main code in the .cpp files, but this w/TMBtools puts most in the headers. I think this is ok?

Anyway, I can get the .o and .so files rebuilt in RStudio by doing -> More -> Clean and Install. Or from the command line, pkgbuild::compile_dll()