Coder Social home page Coder Social logo

rsocsim's People

Contributors

alburezg avatar tomthe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rsocsim's Issues

Initial opop shows fertility multiplier for men

In the init_new.opop file provided with the installation, there is a mismatch between the sex of the individual and the fertility multiplier, which should be only for women (fem = 1) according to Socsim Oversimplified. Around 20% of men have values for fertility multiplier and more women have fmultiplier.
Perhaps, deleting the fmult for all individuals could be an option, as "For the initial population these multipliers may be read in the .opop file or may be generated by Socsim".

1 1 1 0 183 0 0 0 0 0 0 0 0 0
2 0 1 0 229 0 0 0 0 0 0 0 0 0
3 1 1 0 526 0 0 0 0 0 0 0 0 0.079249
4 0 1 0 493 0 0 0 0 0 0 0 0 1.068213
5 1 1 0 137 0 0 0 0 0 0 0 0 0.682137
6 0 1 0 134 0 0 0 0 0 0 0 0 0
7 1 1 0 174 0 0 0 0 0 0 0 0 0.437177
8 0 1 0 172 0 0 0 0 0 0 0 0 0
9 1 1 0 575 0 0 0 0 0 0 0 0 0
10 0 1 0 517 0 0 0 0 0 0 0 0 0
11 1 1 0 332 0 0 0 0 0 0 0 0 0.043555
12 0 1 0 182 0 0 0 0 0 0 0 0 1.785142

Allow other folders

Thank you for taking on this task! I can't wait to try it with my students and for myself.
One suggestion I would like to make is that create_simulation_folder() provide the option of creating the folder in a specified location. For example, in RStudio, it is common to use projects, and I would want to make a separate project for each set of different things that I did in a separate project. Each project would represent a different working directory. It could still default to the home directory so existing behavior remains the same.

If you want, I could send you a pull request for this.

rename main function

Can we use a shorter name for rsocsim::run1simulationwithfile? How about simply rsocsim::socsim?

Incomplete rate set

Hi SOCSIM team,
I am running some simulations using the latest version of rsocsim and I am still getting the following error message in the console for all years (here I am only copying for 2022)

------------b118b-load.cpp->load . Sweden_a0b1.sup
#load.cpp->load 4. Sweden_a0b1.sup
18b-load.cpp->load . rates/SWEfert2022
#load.cpp->load 4. rates/SWEfert2022
Incomplete rate set, will add rate till MAXUYEARS (death-->1.0; others:0.0) 144
Incomplete rate set, will add rate till MAXUYEARS (death-->1.0; others:0.0) 144
18b-load.cpp->load . rates/SWEmort2022
#load.cpp->load 4. rates/SWEmort2022
Incomplete rate set, will add rate till MAXUYEARS (death-->1.0; others:0.0) 12
Incomplete rate set, will add rate till MAXUYEARS (death-->1.0; others:0.0) 12
New events generated for all living persons__

I think this comes from the fact that the MAXUYEARS is 200 but I am using the rates only until 110 years, but I believe this could be confusing for users.
Is there any way to fix this message or make it more clear?

Thank you in advance,

Liliana

Simulations end with warning messages

Dear rscocsim team,

I found that the simulations succesfully carried out with the rsocsim::socsim() command return two warning messages:

XX: In readLines(con, n = 1) :
  incomplete final line found on 'sim_results_supervisory.sup_SEED_/logfile.log'
XX: In startSocsimWithFile(supfile, seed, compatibility_mode,  ... :
  can't open transition history file. Hope that's OK

The help file does not currently specify the meaning of these warning messages and what their effect on the simulation output might be.

Many thanks and best wishes,
Antonino

Global directives when using marriage_after_childbirth 1

Hi Tom.
In the sup file provided as an example in the package, the directives "marriage_after_childbirth 1" and "marriage_eval distribution 1" are enabled, but no further directives regarding marriages are included.
Does the ´rsocsim´ marriage_after_childbirth currently work with the default options "marriage_queues 2" and "random_father 0" or they must be specified differently?
Thanks.

Add a licence and a licence-file

We should decide which open-source software license we should apply to the package.

If possible, it should be compatible with the license of "old" socsim.

Question 1: what license had the old socsim?

Question 2: which license should we use? I vote for GPL. Have a look here: https://choosealicense.com/ Any other suggestions?

Troubles installing rsocsim on Mac (compilation)

Hi Tom, I tried installing rsocsim for the first time, but received error messages (see console output below) and couldn't complete the installation. I use MacOS Ventura 13.4, RStudio Version 2023.06.0+421, and R 4.3.1. Also, I checked that I have devtools as well as Xcode (Version 14.3.1) installed and updated. Your help is very much appreciated! Thanks, Bettina

> library(devtools)
Loading required package: usethis
> devtools::install_github("MPIDR/rsocsim")
Downloading GitHub repo MPIDR/rsocsim@HEAD
Error: Failed to install 'rsocsim' from GitHub:
  Could not find tools necessary to compile a package
Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
> pkgbuild::check_build_tools(debug = TRUE)
Trying to compile a simple C file
Running /Library/Frameworks/R.framework/Resources/bin/R CMD SHLIB foo.c
using C compiler: ‘clang version 7.0.0 (tags/RELEASE_700/final)’
using SDK: ‘’
clang -arch arm64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include    -fPIC  -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -c foo.c -o foo.o
warning: using sysroot for 'MacOSX' but targeting 'iPhone' [-Wincompatible-sysroot]
clang -arch arm64 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/arm64/lib -o foo.so foo.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
ld: warning: building for iOS 5.0.0 is deprecated
ld: framework not found CoreFoundation
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [foo.so] Error 1
Error: Could not find tools necessary to compile a package
Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.

Better introduction to Socsim in the readme

Bevore the sections on how to install and run rsocsim, we should have a section that explains what socsim and rsocsim actually are.

First, very rough draft:

About Socsim and rsocsim

Socsim stands for Social Simulator.
It is a microsimulation software to simulate populations and their kinship structure.

...explanation of what it actually does: Socsim creates a population of individual agents (persons) from input files. It then applies the events "marriage", "childbirth", "death", etc. based on rates that the user provides. It saves the growing kinship network as output....
...marriage markets? migration? what else?

...explanation of what is possible with this stuff... with examples...
users can then analyse the virtual population and the complete kinship structure...

... a bit of history and making clear that this is something established...
Socsims first version was developed in the 1970ies in Fortran... rewritten in C in the 80 ... used for countless cool papers throughout the last 50 years... examples...

... and now we (who?) will maintain socsim for the next years. We refactored the code a bit so that it runs on every operating system. We packaged it now into an R-package together with some useful functions that are often needed in working with the in- and output of socsim, so that it is much easier to get started.

Installation/compilation issues on mac

Hi! I had socsim working on my mac after installing it earlier this year, though found it was often crashing and causing R to abort. I have tried installing the latest version of R, and reinstalled dev tools and checked xcode/ rccp are installed, but when I run the line devtools::install_github("MPIDR/rsocsim") I get an error (it's very long so only pasting the last part of it below).

Have you got advice on how best to fix this? Am I better returning to an earlier version of R or is there a different issue? Any advice would be much appreciated. Thanks!


In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:813:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                sprintf(logstring, "agedif_mariage_sd (group %d) : %f\n",
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:830:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                sprintf(logstring, "parameter0 : %f\n", parameter0);
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:838:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                sprintf(logstring, "parameter1 : %f\n", parameter1);
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:846:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                sprintf(logstring, "parameter2 : %f\n", parameter2);
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:854:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                sprintf(logstring, "parameter3 : %f\n", parameter3);
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:862:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                sprintf(logstring, "parameter4 : %f\n", parameter4);
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:870:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                sprintf(logstring, "parameter6 : %f\n", parameter6);
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:878:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                sprintf(logstring, "parameter7 : %f\n", parameter7);
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:886:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                sprintf(logstring, "parameter8 : %f\n", parameter8);
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:894:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                sprintf(logstring, "parameter9 : %f\n", parameter9);
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:902:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                sprintf(logstring, "parameter10 : %f\n", parameter10);
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:909:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                sprintf(logstring, "alpha %lf\n", alpha);
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:920:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                sprintf(logstring, "betaT %lf\n", betaT);
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:925:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                sprintf(logstring, "birth interval %s\n", words[1]);
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:944:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                sprintf(logstring,
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:960:4: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                        sprintf(logstring,
                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:972:4: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                        sprintf(logstring,
                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:1007:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                sprintf(logstring, "endogamy %lf\n", endogamy);
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:1281:2: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
        register char *p, *q = NULL;
        ^~~~~~~~~
././src/load.cpp:1281:2: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
        register char *p, *q = NULL;
        ^~~~~~~~~
././src/load.cpp:1282:2: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
        register char **wp = words;
        ^~~~~~~~~
././src/load.cpp:1283:2: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
        register int state;
        ^~~~~~~~~
././src/load.cpp:1368:33: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
enum l_keyword l_lookup_keyword(register char *word)
                                ^~~~~~~~~
././src/load.cpp:1383:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "birth",
                ^~~~~~~~
                {
././src/load.cpp:1385:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "death",
                ^~~~~~~~
                {
././src/load.cpp:1387:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "divorce",
                ^~~~~~~~~~
                {
././src/load.cpp:1389:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "marriage",
                ^~~~~~~~~~~
                {
././src/load.cpp:1391:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "cohab_prob",
                ^~~~~~~~~~~~~
                {
././src/load.cpp:1393:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "birthtarget",
                ^~~~~~~~~~~~~~
                {
././src/load.cpp:1395:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "transittarget",
                ^~~~~~~~~~~~~~~~
                {
././src/load.cpp:1397:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "take_census",
                ^~~~~~~~~~~~~~
                {
././src/load.cpp:1399:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "sex_ratio",
                ^~~~~~~~~~~~
                {
././src/load.cpp:1401:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "proportion_male",
                ^~~~~~~~~~~~~~~~~~
                {
././src/load.cpp:1403:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "input_file",
                ^~~~~~~~~~~~~
                {
././src/load.cpp:1405:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "output_file",
                ^~~~~~~~~~~~~~
                {
././src/load.cpp:1407:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "execute",
                ^~~~~~~~~~
                {
././src/load.cpp:1409:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "include",
                ^~~~~~~~~~
                {
././src/load.cpp:1411:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "end",
                ^~~~~~
                {
././src/load.cpp:1413:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "single",
                ^~~~~~~~~
                {
././src/load.cpp:1415:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "married",
                ^~~~~~~~~~
                {
././src/load.cpp:1417:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "divorced",
                ^~~~~~~~~~~
                {
././src/load.cpp:1419:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "widowed",
                ^~~~~~~~~~
                {
././src/load.cpp:1421:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "cohabiting",
                ^~~~~~~~~~~~~
                {
././src/load.cpp:1423:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "F",
                ^~~~
                {
././src/load.cpp:1425:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "M",
                ^~~~
                {
././src/load.cpp:1427:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "segments",
                ^~~~~~~~~~~
                {
././src/load.cpp:1430:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "done",
                ^~~~~~~
                {
././src/load.cpp:1432:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "run",
                ^~~~~~
                {
././src/load.cpp:1434:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "read_xtra",
                ^~~~~~~~~~~~
                {
././src/load.cpp:1436:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "size_of_xtra",
                ^~~~~~~~~~~~~~~
                {
././src/load.cpp:1438:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "float",
                ^~~~~~~~
                {
././src/load.cpp:1440:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "lc_init",
                ^~~~~~~~~~
                {
././src/load.cpp:1442:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "lc_ax",
                ^~~~~~~~
                {
././src/load.cpp:1444:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "lc_bx",
                ^~~~~~~~
                {
././src/load.cpp:1446:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "lc_k_val",
                ^~~~~~~~~~~
                {
././src/load.cpp:1448:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "lc_k_mean",
                ^~~~~~~~~~~~
                {
././src/load.cpp:1450:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "lc_k_std_dev",
                ^~~~~~~~~~~~~~~
                {
././src/load.cpp:1452:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "lc_k_start_list",
                ^~~~~~~~~~~~~~~~~~
                {
././src/load.cpp:1454:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "lc_epsilon",
                ^~~~~~~~~~~~~
                {
././src/load.cpp:1456:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "fix_epsilon",
                ^~~~~~~~~~~~~~
                {
././src/load.cpp:1458:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "random_epsilon",
                ^~~~~~~~~~~~~~~~~
                {
././src/load.cpp:1460:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "random_father",
                ^~~~~~~~~~~~~~~~
                {
././src/load.cpp:1462:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "random_father_min_age",
                ^~~~~~~~~~~~~~~~~~~~~~~~
                {
././src/load.cpp:1464:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "integer",
                ^~~~~~~~~~
                {
././src/load.cpp:1466:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "double",
                ^~~~~~~~~
                {
././src/load.cpp:1468:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "string",
                ^~~~~~~~~
                {
././src/load.cpp:1470:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "alpha",
                ^~~~~~~~
                {
././src/load.cpp:1472:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "betaT",
                ^~~~~~~~
                {
././src/load.cpp:1474:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "bint",
                ^~~~~~~
                {
././src/load.cpp:1476:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "duration_specific",
                ^~~~~~~~~~~~~~~~~~~~
                {
././src/load.cpp:1478:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "factor",
                ^~~~~~~~~
                {
././src/load.cpp:1480:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "hhmigration",
                ^~~~~~~~~~~~~~
                {
././src/load.cpp:1482:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "hetfert",
                ^~~~~~~~~~
                {
././src/load.cpp:1484:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "endogamy",
                ^~~~~~~~~~~
                {
././src/load.cpp:1486:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "write_output",
                ^~~~~~~~~~~~~~~
                {
././src/load.cpp:1488:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "child_inherits_group",
                ^~~~~~~~~~~~~~~~~~~~~~~
                {
././src/load.cpp:1490:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "duration",
                ^~~~~~~~~~~
                {
././src/load.cpp:1492:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "firstyear",
                ^~~~~~~~~~~~
                {
././src/load.cpp:1494:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "transit",
                ^~~~~~~~~~
                {
././src/load.cpp:1496:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "hettrans",
                ^~~~~~~~~~~
                {
././src/load.cpp:1498:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "agedif_marriage_mean",
                ^~~~~~~~~~~~~~~~~~~~~~~
                {
././src/load.cpp:1500:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "agedif_marriage_sd",
                ^~~~~~~~~~~~~~~~~~~~~
                {
././src/load.cpp:1502:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "marriage_eval",
                ^~~~~~~~~~~~~~~~
                {
././src/load.cpp:1504:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "marriage_queues",
                ^~~~~~~~~~~~~~~~~~
                {
././src/load.cpp:1506:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "marriage_after_childbirth",
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                {
././src/load.cpp:1509:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "marriage_peak_age",
                ^~~~~~~~~~~~~~~~~~~~
                {
././src/load.cpp:1511:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "marriage_slope_ratio",
                ^~~~~~~~~~~~~~~~~~~~~~~
                {
././src/load.cpp:1513:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "marriage_agedif_max",
                ^~~~~~~~~~~~~~~~~~~~~~
                {
././src/load.cpp:1515:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "marriage_agedif_min",
                ^~~~~~~~~~~~~~~~~~~~~~
                {
././src/load.cpp:1517:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "parameter0",
                ^~~~~~~~~~~~~
                {
././src/load.cpp:1519:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "parameter1",
                ^~~~~~~~~~~~~
                {
././src/load.cpp:1521:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "parameter2",
                ^~~~~~~~~~~~~
                {
././src/load.cpp:1523:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "parameter3",
                ^~~~~~~~~~~~~
                {
././src/load.cpp:1525:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "parameter4",
                ^~~~~~~~~~~~~
                {
././src/load.cpp:1527:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "parameter5",
                ^~~~~~~~~~~~~
                {
././src/load.cpp:1529:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "parameter6",
                ^~~~~~~~~~~~~
                {
././src/load.cpp:1531:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "parameter7",
                ^~~~~~~~~~~~~
                {
././src/load.cpp:1533:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "parameter8",
                ^~~~~~~~~~~~~
                {
././src/load.cpp:1535:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "parameter9",
                ^~~~~~~~~~~~~
                {
././src/load.cpp:1537:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                "parameter10",
                ^~~~~~~~~~~~~~
                {
././src/load.cpp:1539:3: warning: suggest braces around initialization of subobject [-Wmissing-braces]
                0,
                ^~
                {
././src/load.cpp:1542:2: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
        register struct tab *p;
        ^~~~~~~~~
././src/load.cpp:1552:23: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
void l_create_rateset(register struct l_context *cx, char *name)
                      ^~~~~~~~~
././src/load.cpp:1672:2: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
        sprintf(logstring, "add_lc_rate_block. years: %d, months: %d, prob %f, read_ax_or_bx: %d current_block->upper_age: %d, ",years,months,prob,read_ax_or_bx,current_block->upper_age);
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:1907:6: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                                        sprintf(logstring, "ERROR......abr");
                                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:1915:6: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                                        sprintf(logstring, "ERROR. inconsistent specifiation for LC rate set");
                                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:2175:8: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                                                        sprintf(logstring,
                                                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:2228:5: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                                sprintf(logstring, "ERROR birthtarget is set BUT  group %d has 0 or fewer expected births. This could result from the init pop having no females of childbearing age. Disable birthtarget for this group if you want results.", g);
                                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:2333:4: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                        sprintf(logstring,
                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:2391:4: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                        sprintf(logstring,
                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:2415:7: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                sprintf(logstring,
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:2425:9: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                                                                sprintf(logstring,
                                                                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:2631:2: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
        sprintf(logstring,
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:2741:6: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                                        sprintf(logstring, "reading fertility rates for: group=%d mstat=%d parity=%d", g, m, p);
                                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:2745:7: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                                                sprintf(endbit, "+\n");
                                                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:16:
././src/load.cpp:2749:7: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                                                sprintf(endbit, "\n");
                                                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:18:
././src/utils.c:297:2: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
        sprintf(tmp_name, "output.%d", fy);
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:18:
././src/utils.c:671:2: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
        sprintf(tmp_name, "childoutput.%d", fy);
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
In file included from ././src/events.cpp:19:
././src/xevents.c:1677:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
  sprintf(logstring, "\n month:%d child:%d No qualified father found in %d attempts \n",
  ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
././src/events.cpp:477:5: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                                sprintf(logstring, "\n\nEncountered personid=%d with mstatus=%d (NOT SINGLE)\nSince no initial .omar file was found this is madness and can only lead to tears", p->person_id, p->mstatus);
                                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
././src/events.cpp:541:3: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                sprintf(logstring, "ERROR......abr3");
                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
././src/events.cpp:589:4: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                        sprintf(segnum, "%d", current_segment);
                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
././src/events.cpp:822:4: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                        sprintf(logstring, "Population Total / living : %d / %d",
                        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
././src/events.cpp:895:5: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                                sprintf(logstring, "WARNING marriage_queues = 1; and marriage_eval == 'distribution'\n and yet females have failed to find matches immediately\n Months spent on queue:%d\n", time_waiting[FEMALE]);
                                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
././src/events.cpp:909:2: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
        sprintf(logstring, "total size of pop %d\n", last_person->person_id);
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
././src/events.cpp:911:2: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
        sprintf(logstring, "living size of pop %d\n", size_of_pop[0]);
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
In file included from startSocsimWithFile.cpp:4:
././src/events.cpp:1958:5: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
                                sprintf(logstring, "up: %d  width: %d lam: %lf  modlam: %lf\n",
                                ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:188:1: note: 'sprintf' has been explicitly marked deprecated here
__deprecated_msg("This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.")
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:215:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
139 warnings and 8 errors generated.
make: *** [startSocsimWithFile.o] Error 1
ERROR: compilation failed for package ‘rsocsim’
* removing ‘/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/rsocsim’
Warning message:
In i.p(...) :
  installation of package ‘/var/folders/jy/t029hcv94mqf2mf0n1bb67wc0000gn/T//RtmpixMSBm/filedbd23909bd99/rsocsim_1.5.8.tar.gz’ had non-zero exit status

Names of the functions to estimate rates and example in the documentation do not correspond

After a change in the name of the functions to estimate the rates, now called estimate_fertility_rates() and estimate_mortality_rates(),
when calling the R documentation, in the usage we get

estimate_fertility_rates(
opop,
final_sim_year,
year_min,
year_max,
year_group = 5,
age_min_fert = 15,
age_max_fert = 50,
age_group = 5
)

But in the example:

Retrieve age-specific fertility rates

asfr <- get_asfr_socsim(opop = opop,
final_sim_year = 2021,
year_min = 1750,
year_max = 2020,
year_group = 5,
age_min_fert = 10,
age_max_fert = 55,
age_group = 5)

It should be better to unify the terms: estimate instead of retrieve and get.
In the explanation of the arguments, age_min_fert has the explanation for age_max_fert (numeric. Upper-bound age of female reproductive period) It should be Lower-bound. Also, age_max_fert is missing.

In the case of mortality, we have the same problem:

In the usage, it uses the term estimate
estimate_mortality_rates(
opop,
final_sim_year,
year_min,
year_max,
year_group,
age_max_mort,
age_group
)

But in the example it shows Retrieve and get

Retrieve age-specific mortality rates

asmr <- get_asmr_socsim(opop = opop,
final_sim_year = 2021,
year_min = 1750,
year_max = 2020,
year_group = 5,
age_max_mort = 110,
age_group = 5)

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.