Skip to content
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

c14_calibrate not fully vectorised #10

Open
joeroe opened this issue Feb 4, 2022 · 1 comment
Open

c14_calibrate not fully vectorised #10

joeroe opened this issue Feb 4, 2022 · 1 comment

Comments

@joeroe
Copy link
Owner

joeroe commented Feb 4, 2022

Only engine = "rcarbon" is vectorised.

library(c14)

c14_calibrate(c(5000, 6000), c(30, 30), engine = "intcal")
#> Warning in if (age < 0) if (!postbomb) if (!(cc %in% c("nh1", "nh2", "nh3", :
#> the condition has length > 1 and only the first element will be used
#> Warning in error^2 + cc[, 3]^2: longer object length is not a multiple of
#> shorter object length
#> <c14_cal[1]>
#> [1] 5730 cal BP

c14_calibrate(c(5000, 6000), c(30, 30), engine = "rcarbon")
#> Registered S3 method overwritten by 'spatstat.geom':
#>   method     from
#>   print.boxx cli
#> <c14_cal[2]>
#> [1] 5728 cal BP 6846 cal BP

c14_calibrate(c(5000, 6000), c(30, 30), engine = "oxcal")
#> Oxcal doesn't seem to be installed. Downloading it now:
#> Oxcal stored successful at /tmp/RtmpsiTyYO!
#> Oxcal path set!
#> Error in `new_list_of()` at c14/R/cal.R:74:2:
#> ! `x` must be a list.

c14_calibrate(c(5000, 6000), c(30, 30), engine = "bchron")
#> Calibrating curve not provided. Using: intcal20
#> Error in `new_list_of()` at c14/R/cal.R:74:2:
#> ! `x` must be a list.
@joeroe
Copy link
Owner Author

joeroe commented Feb 4, 2022

5780314 vectorised engine = "intcal".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant