Skip to main content
added 18 characters in body
Source Link
Sven Hohenstein
  • 2.5k
  • 3
  • 14
  • 26

R, versions 2 and 3, 21 bytesscore: 10.5 points

cat(exists("cite")+2)

This command returns 2 for R 2.x.x and 3 for R 3.x.x. The function cite was added in R version 3.0.0. Therefore, the command exists("cite") returns FALSE for R 2.x.x and TRUE for R 3.x.x.

R, all versions (1, 2, and 3), 37 bytesscore: 12⅓ points

e=exists;cat(e("cite")+e("eapply")+1)

The function eapply was introduced in R 2.0.0.

R, versions 2 and 3, 21 bytes

cat(exists("cite")+2)

This command returns 2 for R 2.x.x and 3 for R 3.x.x. The function cite was added in R version 3.0.0. Therefore, the command exists("cite") returns FALSE for R 2.x.x and TRUE for R 3.x.x.

R, all versions (1, 2, and 3), 37 bytes

e=exists;cat(e("cite")+e("eapply")+1)

The function eapply was introduced in R 2.0.0.

R, versions 2 and 3, score: 10.5 points

cat(exists("cite")+2)

This command returns 2 for R 2.x.x and 3 for R 3.x.x. The function cite was added in R version 3.0.0. Therefore, the command exists("cite") returns FALSE for R 2.x.x and TRUE for R 3.x.x.

R, all versions (1, 2, and 3), score: 12⅓ points

e=exists;cat(e("cite")+e("eapply")+1)

The function eapply was introduced in R 2.0.0.

added 9 characters in body
Source Link
Sven Hohenstein
  • 2.5k
  • 3
  • 14
  • 26

R, versions 2 and 3, 1621 bytes

cat(exists("cite")+2)

This command returns 2 for R 2.x.x and 3 for R 3.x.x. The function cite was added in R version 3.0.0. Therefore, the command exists("cite") returns FALSE for R 2.x.x and TRUE for R 3.x.x.

R, all versions (1, 2, and 3), 3337 bytes

existse=exists;cat(e("cite")+exists+e("eapply")+1)

The function eapply was introduced in R 2.0.0.

R, versions 2 and 3, 16 bytes

exists("cite")+2

This command returns 2 for R 2.x.x and 3 for R 3.x.x. The function cite was added in R version 3.0.0. Therefore, the command exists("cite") returns FALSE for R 2.x.x and TRUE for R 3.x.x.

R, all versions (1, 2, and 3), 33 bytes

exists("cite")+exists("eapply")+1

The function eapply was introduced in R 2.0.0.

R, versions 2 and 3, 21 bytes

cat(exists("cite")+2)

This command returns 2 for R 2.x.x and 3 for R 3.x.x. The function cite was added in R version 3.0.0. Therefore, the command exists("cite") returns FALSE for R 2.x.x and TRUE for R 3.x.x.

R, all versions (1, 2, and 3), 37 bytes

e=exists;cat(e("cite")+e("eapply")+1)

The function eapply was introduced in R 2.0.0.

added 139 characters in body
Source Link
Sven Hohenstein
  • 2.5k
  • 3
  • 14
  • 26

R, versionversions 2 and 3, 16 bytes

exists("cite")+2

This command returns 2 for R 2.x.x and 3 for R 3.x.x. The function cite was added in R version 3.0.0. Therefore, the command exists("cite") returns FALSE for R 2.x.x and TRUE for R 3.x.x.

R, all versions (1, 2, and 3), 33 bytes

exists("cite")+exists("eapply")+1

The function eapply was introduced in R 2.0.0.

R, version 2 and 3, 16 bytes

exists("cite")+2

This command returns 2 for R 2.x.x and 3 for R 3.x.x. The function cite was added in R version 3.0.0. Therefore, the command exists("cite") returns FALSE for R 2.x.x and TRUE for R 3.x.x.

R, versions 2 and 3, 16 bytes

exists("cite")+2

This command returns 2 for R 2.x.x and 3 for R 3.x.x. The function cite was added in R version 3.0.0. Therefore, the command exists("cite") returns FALSE for R 2.x.x and TRUE for R 3.x.x.

R, all versions (1, 2, and 3), 33 bytes

exists("cite")+exists("eapply")+1

The function eapply was introduced in R 2.0.0.

Source Link
Sven Hohenstein
  • 2.5k
  • 3
  • 14
  • 26
Loading