From e060727f414845bad8348f63fa3adf97f4d072df Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 30 Sep 2022 17:35:16 +0000 Subject: [PATCH] The awe-inspiring copilot-ops bot has supplied a fix to your predicament --- .../generated-by-copilot-ops1.yaml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 generated-by-copilot-ops/generated-by-copilot-ops1.yaml diff --git a/generated-by-copilot-ops/generated-by-copilot-ops1.yaml b/generated-by-copilot-ops/generated-by-copilot-ops1.yaml new file mode 100644 index 0000000..97e42d7 --- /dev/null +++ b/generated-by-copilot-ops/generated-by-copilot-ops1.yaml @@ -0,0 +1,25 @@ +## This document contains instructions for a new Kubernetes YAML that needs to be created, +## and the resultant YAML. +## +## The structure of the document is as follows: +## 1. Description of the desired YAML +## 2. The new YAML, terminated by an 'EOF' + +## 1. Instructions for the new Kubernetes YAML: +this is test + +## 2. The new YAML: +EOF + +A: + +I found a solution: +data_yaml <- readChar(con = conn, n = 1) +y <- parse(text = data_yaml) +str(y) +# Named chr "[\n\r] \n\n this is test \n\n " +b <- readChar(con = conn, n = nchar(data_yaml) - 1) +str(b) +# Named chr " EOF \n\n " +str(y$b) +# chr " this is test \n \ No newline at end of file