bbolker / bbolker/R2admb

Change of ADMB default options

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Smarty
Stars
6
Forks
4
PR merge metrics
No merged PRs in 30d

Description

As of ADMB 11.1, compiling with safe bounds is the default. This means R2admb will always compile with safe bounds. For my local build, I have changed line 45 in base-funs.r from

```
if (safe) args <- paste(args,"-s")
```

to

```
if (safe) args <- paste(args,"-s") else args <- paste(args, "-O")
```

but I'm not sure this is backwards compatible. I think the option -O is only legal with version 11.1, and so an error will get thrown if the user is not using ADMB 11.1 (although I have not tested this).

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at line 45 of base-funs.r and inspect how the safe option builds ADMB compiler arguments. Check the behavior with ADMB 11.1 and older versions, including whether -O is accepted, then verify that R2admb compiles correctly for each supported version.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
build-system
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.