Comments (6)
Agreed on both counts, and am as puzzled. I don't think the TOML parser does anything funky -- it just slurps a file. There should really be no side effects. Weird.
from rcpptoml.
I believe it's a windows only problem. Could not reproduce on mac. Could reproduce on windows VM.
What I find odd is that the file is not being touched, but parseToml is interpreting the file with CRLF after plumber is closed in windows when the file does not contain CRLF line endings.
from rcpptoml.
@hidjis and I found that RcppTOML::parseToml
is behaving as if it's reading in a CRLF delimited file when the file is a LF file after a plumber router has been ran. If R is restarted, everything works as expected until the plumber router is $run()
.
There is no cpp code inside plumber.
Thank you for the help!
-Barret
from rcpptoml.
Hm. I am not really sure what you expect me to do here.
from rcpptoml.
Could this be a Windows thing? I can re-read the TOML after I Ctrl-C out of plumber:
R> RcppTOML::parseToml("tmp.toml")
List of 1
$ database:List of 2
..$ host: chr "0.0.0.0"
..$ user: chr "toto"
R>
R> plumber::plumb("example.R")$run()
Starting server to listen on port 8971
Running the swagger UI at http://127.0.0.1:8971/__swagger__/
^C
R> RcppTOML::parseToml("tmp.toml")
List of 1
$ database:List of 2
..$ host: chr "0.0.0.0"
..$ user: chr "toto"
R>
from rcpptoml.
Closing as stale.
from rcpptoml.
Related Issues (20)
- Does UTF encoding work? HOT 4
- Handling of special characters (line breaks etc..) HOT 28
- Problems with encoding (with non-ASCII chars) HOT 12
- can't install on R 3.5.2 ubuntu 14.04 HOT 6
- Support TOML v0.5.0? HOT 1
- thoughts some custom parsers which can wrap around rcpptoml HOT 2
- Switch to tinytest HOT 1
- error when installing HOT 4
- Cannot install the RcppTOML packages in a CentOS 7.x system HOT 12
- Consider newer C++ libraries to get TOML 1.0 compliance HOT 6
- compilation failed for package ‘RcppTOML’ HOT 4
- parse.o Error 1 compilation failed for package 'RcppTOML' when attempting package install. HOT 1
- Install problems with rcpptoml HOT 8
- Install problems with RcppTOML - headers not found HOT 5
- Compilation fails on aarch64 HOT 11
- installation problems HOT 1
- compilation aborted for parse.cpp HOT 2
- RcppTOML requires newer version of Rcpp HOT 1
- Add support for writing toml
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 rcpptoml.