Comments (6)
As a start, I could export the parse and format functions for you at the C level. Would that help?
from rcppcctz.
Not really. I need full CCTZ API. Would really help if you could somehow put an object archive into the include folder so that I can pull it with -lcctz from Makevars.
from rcppcctz.
That is beyond the scope of this package and project. Look at the line count of CCTZ and all the classes.
I'd rather talk to upstream about to ensure the build is header only, if only for subsets. Boost is similar. You can use Boost date_time header-only for as long as you forgo string operations (either parsing or formatting or both).
Here, I went to CCTZ to get the parsing and formatting explicitly so I don't mind the fact that the package itself is linking.
But in general you can't "just" assume a C++ library from another R package. Once you are at the linking stage you are in the hands of the OS. Now, carefully done header libraries can help here. Maybe there is scope. Talk to upstream -- it is not an RcppCCTZ issue.
from rcppcctz.
That is beyond the scope of this package and project. Look at the line count of CCTZ and all the classes.
I actually meant to create an archive of compiled objects and keep it in RcppCCTZ path somewhere accessible. Something along these lines:
LIBCCTZ=cctz/time_tool.o \
cctz/time_zone_fixed.o \
cctz/time_zone_format.o \
cctz/time_zone_if.o \
cctz/time_zone_impl.o \
cctz/time_zone_info.o \
cctz/time_zone_libc.o \
cctz/time_zone_lookup.o \
cctz/time_zone_posix.o
$(SHLIB): libcctz.a
libcctz.a: $(LIBCCTZ)
$(AR) rcs libcctz.a $(LIBCCTZ)
Then move libcctz.a into an accessible place. Isn't this doable?
from rcppcctz.
I would tend to say "No", and quite firmly.
I don't think I have seen this suggested, let alone, recommended on r-devel or in Writing R Extension.
from rcppcctz.
I understood your question as asking whether the RcppCCTZ could provide the static library, and I still don't think so.
Compiling locally at your use for use in the same is possible. That is closer to you embedding the sources yourself. May still be brittle.
from rcppcctz.
Related Issues (13)
- Nanosecond precision loss in 'parseDouble' HOT 17
- Compile errors on Travis HOT 6
- RcppCCTZ does not build on FreeBSD HOT 7
- comments and clarification on toTz HOT 10
- ERROR: compilation failed for package 'RcppCCTZ' HOT 3
- Unexpected result tzDiff HOT 11
- FYI: CCTZ v2.0 is out, with some added features and spelling changes HOT 1
- Minimal set of functions for C-level access by other packages HOT 22
- Parse error for dates without separator HOT 9
- Header <R_ext/Rdynload.h> missing for RcppCCTZ_API.h, needed by R_GetCCallable. HOT 7
- Conversion to time_t ? HOT 1
- Windows support ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rcppcctz.