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

feat: add support for R lang #1371

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

Sukhacoder02
Copy link

Description

This PR adds support for R lang.
Fixes #1224.

Screenshot

image

@netlify
Copy link

netlify bot commented Jul 20, 2023

Deploy Preview for spaceship-prompt ready!

Name Link
🔨 Latest commit e698d27
🔍 Latest deploy log https://app.netlify.com/sites/spaceship-prompt/deploys/64c91fc6e569c8000794a5d1
😎 Deploy Preview https://deploy-preview-1371--spaceship-prompt.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Sukhacoder02 Sukhacoder02 mentioned this pull request Jul 20, 2023
Copy link
Member

@denysdovhan denysdovhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about using rlang for section name? What do you think?

@@ -0,0 +1,25 @@
# R (`R lang`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use a convention similar to V lang. We use vlang key in code to avoid confusion. Let's do the same for R lang. Please use rlang everywhere

Suggested change
# R (`R lang`)
# R (`rlang`)

!!! info
[**R**](https://r-project.org) is a free software environment for statistical computing and graphics.

The `R` section displays the R version.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The `R` section displays the R version.
The `rlang` section displays the R version.


| Variable | Default | Meaning |
| :-------------------- | :--------------------------------: | ------------------------------------------ |
| `SPACESHIP_R_SHOW` | `true` | Show section |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R -> RLANG

Suggested change
| `SPACESHIP_R_SHOW` | `true` | Show section |
| `SPACESHIP_RLANG_SHOW` | `true` | Show section |

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, @denysdovhan. I'll do that.
In the meantime, can you have a look at other PR #1367?

@denysdovhan denysdovhan added the new-feature A PR that implement feature (section, specific behavior, etc). label Jul 27, 2023
@Sukhacoder02
Copy link
Author

Hey @denysdovhan, I have made the changes as you have suggested.

Copy link
Member

@denysdovhan denysdovhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Small mistake in sections code.
  • Please add rlang to mkdocs.yml table of content.
  • Add rlang to internal.json

[[ $? -ne 0 || -z $R_version ]] && return

# Verbose output
[[ $SPACESHIP_R_VERBOSE == false ]] && R_version=$(echo $R_version | cut -d ' ' -f 1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[[ $SPACESHIP_R_VERBOSE == false ]] && R_version=$(echo $R_version | cut -d ' ' -f 1)
[[ $SPACESHIP_RLANG_VERBOSE == false ]] && R_version=$(echo $R_version | cut -d ' ' -f 1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature A PR that implement feature (section, specific behavior, etc).
Development

Successfully merging this pull request may close these issues.

R section
2 participants