Code Monkey home page Code Monkey logo

clam's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m Maarten Blaauw and I'm a Reader at Archaeology & Palaeoecology at Queen's University Belfast, UK. I am Director of the 14CHRONO Centre.
  • ๐Ÿ‘€ Iโ€™m interested in palaeoecology and especially in chronology-building using radiocarbon or other types of dates.
  • ๐Ÿ“ซ You can reach me by mail: [email protected]

clam's People

Contributors

maarten14c avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

nickmckay

clam's Issues

Suggestion: Option to not "closeAllConnections()"

Dear Maarten,

I recently ran your package in a jupyter notebook with R kernel. My code was fairly simple with this dataset (PG1972.txt - had to convert the .csv to .txt to upload it to this issue):

setwd('D:/HEIBRiDS/Data/clam_runs')
library('clam')
clam(core='PG1972', coredir= 'D:/HEIBRiDS/Data/clam_runs', type = 1, its = 10000)

But it produced an error:

The run's files will be put in this folder: D:\HEIBRiDS\Data\clam_runs/PG1972

 Calibrating dates...  extrapolating beyond dated levels, dangerous!
  Interpolating, sampling.....

Error in isOpen(con):  invalid connection

I think this has to do with the following line:

clam/R/clam.R

Line 412 in 0851eab

closeAllConnections()

I tested my theory by using the trace('clam', edit = TRUE) command and comment line 412 out. Now, I was able to receive an output: Screenshot 2021-04-13 171414.pdf

Would it be possible for you to implement an option to make the statement "closeAllConnections()" optional? It would be helpful for users, who don't use RStudio, as this seems to interfere with the connection from the kernel and the clam package.

All the best,
Gregor

P.S. here's my sessionInfo() for reproducibility:

R version 4.0.4 (2021-02-15)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)

Matrix products: default

locale:
[1] LC_COLLATE=German_Germany.1252  LC_CTYPE=German_Germany.1252   
[3] LC_MONETARY=German_Germany.1252 LC_NUMERIC=C                   
[5] LC_TIME=German_Germany.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] clam_2.3.7

loaded via a namespace (and not attached):
 [1] fansi_0.4.2     digest_0.6.27   utf8_1.2.1      crayon_1.4.1   
 [5] IRdisplay_0.7.0 repr_1.1.0      lifecycle_1.0.0 jsonlite_1.7.2 
 [9] evaluate_0.14   pillar_1.5.1    rlang_0.4.10    uuid_0.1-4     
[13] IntCal_0.1.3    ellipsis_0.3.1  IRkernel_1.1.1  tools_4.0.4    
[17] compiler_4.0.4  base64enc_0.1-3 pbdZMQ_0.3-3.1  htmltools_0.5.0

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.