-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e937781
commit 48d4bfe
Showing
3 changed files
with
81 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# fails gracefully | ||
|
||
Code | ||
iframe() | ||
Condition | ||
Error in `config::get()`: | ||
! argument "section" is missing, with no default | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# snap | ||
|
||
Code | ||
selectChoices("country") | ||
Output | ||
<div class="form-group shiny-input-container"> | ||
<label class="control-label" id="country-label" for="country">Country</label> | ||
<div> | ||
<select id="country" class="shiny-input-select"><option value="." selected>.</option> | ||
<option value="austria">austria</option> | ||
<option value="france">france</option> | ||
<option value="germany">germany</option> | ||
<option value="netherlands">netherlands</option> | ||
<option value="spain">spain</option></select> | ||
<script type="application/json" data-for="country" data-nonempty="">{"plugins":["selectize-plugin-a11y"]}</script> | ||
</div> | ||
</div> | ||
|
||
# errors gracefully | ||
|
||
Code | ||
selectChoices() | ||
Condition | ||
Error in `paste0()`: | ||
! argument "id" is missing, with no default | ||
|
||
--- | ||
|
||
Code | ||
selectChoices("bad") | ||
Condition | ||
Error in `get()`: | ||
! object 'bad_choices' not found | ||
|
||
# haven't changed | ||
|
||
Code | ||
level_choices() | ||
Output | ||
[1] "product" "company" | ||
|
||
--- | ||
|
||
Code | ||
country_choices() | ||
Output | ||
[1] "." "austria" "france" "germany" "netherlands" | ||
[6] "spain" | ||
|
||
--- | ||
|
||
Code | ||
year_choices() | ||
Output | ||
[1] "." "2030" "2050" "NA" | ||
|
||
--- | ||
|
||
Code | ||
scenario_choices() | ||
Output | ||
[1] "." "NZ 2050" "1.5C RPS" "NA" | ||
|
||
--- | ||
|
||
Code | ||
grouping_emission_choices() | ||
Output | ||
[1] "." "all" "isic_4digit" | ||
[4] "tilt_subsector" "unit" "unit_isic_4digit" | ||
[7] "unit_tilt_subsector" "NA" | ||
|