Comments (5)
@sigmafelix Ahh, yes I see.
r
has been added to code blocks with code but not output (2967113).
from amadeus.
I found all code blocks in README.md were generic (i.e. starting with "```" not "```r"). It might be related to the problem. I will check it somewhere else and make a PR to Mitchell's branch with my changes that were pushed after the last PR.
from amadeus.
I think this happened as a result of not wanting to run the download chunks in the building of the package which runs the README.md file. I can fix these
from amadeus.
I think the lack of copy-paste functionality in the README page is default functionality. This thread discusses the copy-paste button in the function reference pages (which is enabled in our webpage), but no discussion of README.
I updated the README to separate code chunks from return messages, which now enables the copy-paste button in the source code readme without running the code.
Is this sufficient, or do we want to actually run the code blocks? @sigmafelix @kyle-messier
![Screenshot 2024-07-10 at 7 41 11 AM](https://private-user-images.githubusercontent.com/141882492/347385038-1851ea37-63fa-4ffc-94db-de964e7d874c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3NjQ4MzEsIm5iZiI6MTcyNDc2NDUzMSwicGF0aCI6Ii8xNDE4ODI0OTIvMzQ3Mzg1MDM4LTE4NTFlYTM3LTYzZmEtNGZmYy05NGRiLWRlOTY0ZTdkODc0Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyN1QxMzE1MzFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hMTFhNDdkMzNjYjc0ODVkNGMzZWM5ZGU2ODExNGQ4ZDJjMjBmNDFlYzkwNDU4NjViYzhhY2EyZWE0N2VjNzRjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.IvadiTNJ50cWJH8N2du7yAcfjlLZbHVsaHBZSETxADc)
from amadeus.
I think the issue is in the pkgdown page. The current amadeus
webpage displays code blocks without copy-and-paste functionality: https://niehs.github.io/amadeus
![image](https://private-user-images.githubusercontent.com/25448786/347406715-2546be01-e77d-4a0c-ae4b-0f4d73f04be7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3NjQ4MzEsIm5iZiI6MTcyNDc2NDUzMSwicGF0aCI6Ii8yNTQ0ODc4Ni8zNDc0MDY3MTUtMjU0NmJlMDEtZTc3ZC00YTBjLWFlNGItMGY0ZDczZjA0YmU3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI3VDEzMTUzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE0ZjkwYzhiMWEzNWI2YmQzZTM5OTc4NzdkNjZmZjUxNGRmNzg2OGZjODY4YWQ3OTc0MzIzMjg0MzY1ODFjMDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.dlJ8t9mfOMCRDDeRamUGtbdyUfeuq8lo1Q_-JiYq8fc)
In contrast, all code blocks in beethoven
webpage have the functionality (to note, copy buttons show up upon hovering the cursor on a code block): (https://niehs.github.io/beethoven) The difference between README.md source of amadeus
and that of beethoven
is that the backtick symbols are followed by "r" or nothing.
![image](https://private-user-images.githubusercontent.com/25448786/347409324-b856ef01-a795-465a-911c-7b7cd9bd2867.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3NjQ4MzEsIm5iZiI6MTcyNDc2NDUzMSwicGF0aCI6Ii8yNTQ0ODc4Ni8zNDc0MDkzMjQtYjg1NmVmMDEtYTc5NS00NjVhLTkxMWMtN2I3Y2Q5YmQyODY3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI3VDEzMTUzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE2ZDRhNmFkYzc2ZDQyMDdiNzJlOWYxMmE3MTNiNmQ5Y2NiMzFmNTgyN2RjMmJmOGNjZmVkNjhkYTU5Yzc4N2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.9nCfj35kRPCR7o3GJr2oquZptr3LxluxUrd04Fhyczs)
My quick experiment in one of my repos shows this. https://sigmafelix.github.io/speed/
from amadeus.
Related Issues (20)
- Return `SpatVector` or `sf` object from `calc_covariates` HOT 3
- Add imperviousness to amadeus catalog HOT 1
- Add tree canopy cover to amadeus catalog
- Add forest canopy height to amadeus catalog
- Add building footprint to amadeus catalog HOT 3
- Add building height to amadeus catalog HOT 2
- Add local climate zone to amadeus catalog HOT 1
- Cropping extent for `process_*` HOT 3
- Single `download_narr` function HOT 1
- `download_*` optional parameters HOT 4
- Update vignettes HOT 1
- `download_narr` soil variables HOT 1
- update option names for "mode" variable in process_aqs.R HOT 1
- `process_hms` refactoring: treat all levels at once HOT 3
- `download_*()` references HOT 3
- `download_narr` broken HOT 1
- Temporal dimension in calc_<> functions HOT 9
- [IDEA] Calc terrain covariates
- `download_*()` on Windows OS HOT 1
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 amadeus.