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

Level2_data_names and Module-helpers.R748 #1256

Open
RuiWangWr opened this issue Aug 4, 2024 · 1 comment
Open

Level2_data_names and Module-helpers.R748 #1256

RuiWangWr opened this issue Aug 4, 2024 · 1 comment

Comments

@RuiWangWr
Copy link

Hi, I am currently building a R chunk. But I confronted the following issues.

  1. Module-helpers.R748 param requires two parst: an argument name and a description.
  2. Level2_data_names is not an exported object from ‘namespace:gcamdata’

Here is my operation: I am trying to add a new chunk file for generating the xml.
(1) create a new R chunk file based on a similar one.
(2) put it into R directory.
(3) click built. >>gcamdata can be built but the [output] directory does not have the csv file that I want.
(4) check the document. it shows the above two issues. (but before I add the Rchunk file into the R directory, these two issues existed)

May I ask:

  1. how to solve these two issues?
  2. Do these two issues affect the operation of the R chunk?

微信图片_20240804120041

@pkyle
Copy link
Contributor

pkyle commented Aug 5, 2024

Others have probably had better luck than me, but I haven't been able to document in years, and it hasn't mattered for anything I've needed to do. Once you have your code file ready, and it has been placed in the R directory, the correct command is:

devtools::load_all(".")

At that point you can run the driver. It seems like you want the CSV outputs from the function created in this code file, as opposed to an XML file?

driver(stop_after = "module_NEW_FUNCTION_NAME", write_outputs = TRUE)

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

2 participants