JGCRI / gcamdata

The GCAM data system
https://jgcri.github.io/gcamdata/
Other
43 stars 26 forks source link

Level2_data_names and Module-helpers.R748 #1256

Open RuiWangWr opened 1 month ago

RuiWangWr commented 1 month ago

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 commented 1 month ago

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)