Watts-College / cpp-527-spr-2022

https://watts-college.github.io/cpp-527-spr-2022/
0 stars 1 forks source link

Lab 6 #27

Open mrowland1 opened 2 years ago

mrowland1 commented 2 years ago

Hello @Dselby86

I keep getting this error for the IMG code in Lab 6: File ', IMG, ' not found in resource path Error: pandoc document conversion failed with error 99 Execution halted

Here is my code:

fa.github <- fontawesome::fa( name="github" )
fa.twitter <- fontawesome::fa( name="twitter" )

build_circles <- function( WEBSITE, IMG , NAME, DESC, GITHUB, TWITTER )
{

  cat( '<div class="list-circles-item">' )
  cat( '\n' )  # line break 
  cat( paste0( '  <a href="', WEBSITE, '">' ) )
  cat( '\n' )  # line break 
  cat( paste0( '  ><img src="', IMG, '" class="item-img"></a>' ) )
  cat( '\n' )  # line break 
  cat( paste0( '<tag> ', NAME, ' </tag>' ) )
  cat( '\n' )  # line break 
  cat( paste0( '<div class="title"> ', DESC, ' </div>' ) )
  cat( '\n' )  # line break
  cat( paste0( '  <a href="', GITHUB, '">', fa.github, '</a>' ) )
  cat( '\n' )  # line break 
  cat( paste0( '  <a href="', TWITTER, '">', fa.twitter, '</a>' ) )

}

build_circles(WEBSITE="https://www.msf.ch",
  IMG="https://www.repidemicsconsortium.org/img/people/callum-arnold.jpg",
  NAME="Manuel Albela Miranda",
  DESC="Epidemiology Adviser. M?decins sans Fronti?res (MSF) Switzerland.",
  GITHUB="",
  TWITTER=""
)

build_circles
Dselby86 commented 2 years ago

It looks like you have a open tag at the start of this line

cat( paste0( ' ><img src="

If that does not work try commenting out the line and see if the problem is in the picture line.

If so then you can try saving the picture in the same folder as your markdown file. Sometimes I have ahard time using web li KS for pictures.

On Sat, Feb 19, 2022, 5:03 PM mrowland1 @.***> wrote:

Hello @Dselby86 https://github.com/Dselby86

I keep getting this error for the IMG code in Lab 6:

File ', IMG, ' not found in resource path Error: pandoc document conversion failed with error 99 Execution halted

Here is my code:

fa.github <- fontawesome::fa( name="github" ) fa.twitter <- fontawesome::fa( name="twitter" )

build_circles <- function( WEBSITE, IMG , NAME, DESC, GITHUB, TWITTER ) {

cat( '

' ) cat( '\n' ) # line break cat( paste0( ' ' ) ) cat( '\n' ) # line break cat( paste0( ' >' ) ) cat( '\n' ) # line break cat( paste0( ' ', NAME, ' ' ) ) cat( '\n' ) # line break cat( paste0( '
', DESC, '
' ) ) cat( '\n' ) # line break cat( paste0( ' ', fa.github, '' ) ) cat( '\n' ) # line break cat( paste0( ' ', fa.twitter, '' ) )

}

build_circles(WEBSITE="https://www.msf.ch", IMG="https://www.repidemicsconsortium.org/img/people/callum-arnold.jpg", NAME="Manuel Albela Miranda", DESC="Epidemiology Adviser. M?decins sans Fronti?res (MSF) Switzerland.", GITHUB="", TWITTER="" )

build_circles

— Reply to this email directly, view it on GitHub https://github.com/Watts-College/cpp-527-spr-2022/issues/27, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4EHB3APHXDUSNXNFQOJQ3U4AVTLANCNFSM5O3TZV2Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>